-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.13 KB
/
aptos_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Aptos Test
on:
push:
branches: [ main ]
pull_request:
concurrency:
# cancel redundant builds on PRs (only on PR, not on branches)
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
aptos_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup_aptos_cli
with:
version: 4.0.0
- name: test_contract
run: |
aptos move test --skip-fetch-latest-git-deps --skip-attribute-checks --package-dir libs &
LIBS_PID=$!
aptos move test --skip-fetch-latest-git-deps --skip-attribute-checks --package-dir verifier &
VERIFIER_PID=$!
aptos move test --skip-fetch-latest-git-deps --skip-attribute-checks --package-dir cpu &
CPU_PID=$!
wait $LIBS_PID
LIBS_EXIT_CODE=$?
wait $VERIFIER_PID
VERIFIER_EXIT_CODE=$?
wait $CPU_PID
CPU_EXIT_CODE=$?
if [ $LIBS_EXIT_CODE -ne 0 ] || [ $VERIFIER_EXIT_CODE -ne 0 ] || [ $CPU_EXIT_CODE -ne 0 ]; then
exit 1
fi