Skip to content

Commit

Permalink
add ci action to run wasmer-integration-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barankaraaslan committed Jul 19, 2024
1 parent 3660368 commit 6264027
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- 'with-ci-.*'
- 'v3.0.x'
- 'v3.1.x'
- sre-359-make-integration-tests-be-able-to-use-latest-wasmer-cli
pull_request:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -858,3 +859,34 @@ jobs:
CARGO_TARGET: ${{ matrix.target }}
WAPM_DEV_TOKEN: ${{ secrets.WAPM_DEV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# there is another set of integration tests in 'wasmer-integration-tests' repo. Run those
test-wasmer-integration-tests:
needs: [test_integration_cli]
runs-on: ubuntu-22.04
steps:
- name: Checkout wasmer-integration-tests repository
uses: actions/checkout@v3
with:
repository: wasmerio/wasmer-integration-tests
submodules: true
token: ${{ secrets.CLONE_WASMER_INTEGRATION_TESTS }}
- uses: actions/download-artifact@v3
with:
name: wasmer-cli-linux-x64
- run: |
# install rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
# add wasmer cli to PATH
tar -xzf build-wasmer.tar.gz
export PATH=$PATH:$PWD/bin
# login to wasmer registry
wasmer config set registry.url https://registry.wasmer.wtf/graphql
wasmer login ${{ secrets.WAPM_DEV_TOKEN }}
wasmer whoami
# start tests
cargo test --no-fail-fast -- --test-threads 1

0 comments on commit 6264027

Please sign in to comment.