Skip to content

Commit ec6cea7

Browse files
author
Baran Karaaslan
committed
test
1 parent 3660368 commit ec6cea7

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

.github/workflows/test.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,3 +858,34 @@ jobs:
858858
CARGO_TARGET: ${{ matrix.target }}
859859
WAPM_DEV_TOKEN: ${{ secrets.WAPM_DEV_TOKEN }}
860860
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
861+
862+
# there is another set of integration tests in 'wasmer-integration-tests' repo. Run those
863+
test-wasmer-integration-tests:
864+
needs: [test_integration_cli]
865+
runs-on: ubuntu-22.04
866+
steps:
867+
- name: Checkout wasmer-integration-tests repository
868+
uses: actions/checkout@v3
869+
with:
870+
repository: wasmerio/wasmer-integration-tests
871+
submodules: true
872+
token: ${{ secrets.CLONE_WASMER_INTEGRATION_TESTS }}
873+
- uses: actions/download-artifact@v4
874+
with:
875+
name: wasmer-cli-linux-x64
876+
- run: |
877+
# install rust toolchain
878+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
879+
. "$HOME/.cargo/env"
880+
881+
# add wasmer cli to PATH
882+
tar -xzf build-wasmer.tar.gz
883+
export PATH=$PATH:$PWD/bin
884+
885+
# login to wasmer registry
886+
wasmer config set registry.url https://registry.wasmer.wtf/graphql
887+
wasmer login ${{ secrets.WAPM_DEV_TOKEN }}
888+
wasmer whoami
889+
890+
# start tests
891+
cargo test --no-fail-fast -- --test-threads 1

.github/workflows/tmp.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: delete me, debugging ci
2+
3+
on:
4+
push:
5+
branches:
6+
- sre-359-make-integration-tests-be-able-to-use-latest-wasmer-cli
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- name: Checkout wasmer-integration-tests repository
16+
uses: actions/checkout@v3
17+
with:
18+
repository: wasmerio/wasmer-integration-tests
19+
submodules: true
20+
token: ${{ secrets.CLONE_WASMER_INTEGRATION_TESTS }}
21+
- uses: actions/download-artifact@v4
22+
with:
23+
name: wasmer-cli-linux-x64
24+
run-id: 9978713382
25+
github-token: ${{ github.token }}
26+
- run: |
27+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
28+
. "$HOME/.cargo/env"
29+
tar -xzf build-wasmer.tar.gz
30+
export PATH=$PATH:$PWD/bin
31+
wasmer config set registry.url https://registry.wasmer.wtf/graphql
32+
wasmer login ${{ secrets.WAPM_DEV_TOKEN }}
33+
wasmer whoami
34+
cargo test --no-fail-fast -- --test-threads 1

0 commit comments

Comments
 (0)