Skip to content

Commit

Permalink
temp workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Apr 30, 2022
1 parent 2243278 commit 1ac664a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 24 deletions.
69 changes: 45 additions & 24 deletions .github/workflows/main-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: "./wasm-bindgen"
ref: respect-rustdoc-tmp-paths
repository: hamza1311/wasm-bindgen

- uses: actions/checkout@v2
with:
path: "./yew"

- uses: Swatinem/rust-cache@v1

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal

- run: |
cd wasm-bindgen
cargo build -p wasm-bindgen-cli --bin wasm-bindgen-test-runner --release
cp target/release/wasm-bindgen-test-runner ../yew/ci/wasm-bindgen-test-runner
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
Expand All @@ -92,34 +114,20 @@ jobs:
- uses: browser-actions/setup-geckodriver@latest
- uses: nanasess/setup-chromedriver@v1

- uses: Swatinem/rust-cache@v1

- name: Install wasm-bindgen-cli
shell: bash
run: |
if [ ! -f "Cargo.lock" ]; then
cargo fetch
fi
VERSION=`cargo pkgid --frozen wasm-bindgen | cut -d ":" -f 3`
cargo install --version $VERSION wasm-bindgen-cli
- name: Run doctest
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --workspace --exclude yew --exclude website-test --target wasm32-unknown-unknown
run: |
cd yew
cargo test --doc --workspace --exclude yew --exclude website-test --target wasm32-unknown-unknown
- name: Run website code snippet tests
uses: actions-rs/cargo@v1
with:
command: test
args: -p website-test --target wasm32-unknown-unknown
run: |
cd yew
cargo test -p website-test --target wasm32-unknown-unknown
- name: Run doctest - yew with features
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --features doc_test --features wasm_test --target wasm32-unknown-unknown
run: |
cd yew
cargo test --doc --features doc_test --features wasm_test --target wasm32-unknown-unknown
integration_tests:
name: Integration Tests on ${{ matrix.toolchain }}
Expand Down Expand Up @@ -155,6 +163,19 @@ jobs:
VERSION=`cargo pkgid --frozen wasm-bindgen | cut -d ":" -f 3`
cargo install --version $VERSION wasm-bindgen-cli
- name: debug
run: |
geckodriver --version
echo ""
which geckodriver
chromedriver --version
echo ""
which chromedriver
echo ""
wasm-bindgen --version
echo ""
which wasm-bindgen
- name: Run tests - yew
run: |
cd packages/yew
Expand Down Expand Up @@ -201,7 +222,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: -p yew --features "csr,ssr,hydration"
args: -p yew --features "csr,ssr,hydration,tokio"

test-lints:
name: Test lints on nightly
Expand Down
Binary file removed ci/wasm-bindgen-test-runner
Binary file not shown.

0 comments on commit 1ac664a

Please sign in to comment.