-
Notifications
You must be signed in to change notification settings - Fork 72
54 lines (50 loc) · 1.37 KB
/
e2e.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: test-e2e
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-12, ubuntu-latest ]
dfx: [ '0.8.4', '0.9.2', '0.10.1', '0.11.1' ]
steps:
- uses: actions/checkout@v4
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-1
- name: Provision Darwin
if: contains(matrix.os, 'macos')
run: bash .github/workflows/provision-darwin.sh
- name: Provision Linux
if: contains(matrix.os, 'ubuntu')
run: bash .github/workflows/provision-linux.sh
- name: Install DFX
uses: dfinity/setup-dfx@main
with:
dfx-version: ${{ matrix.dfx }}
- name: Setup for dfx version differences
run: |
if [[ "${{ matrix.dfx }}" == "0.8.4" ]]; then
echo "DFX_NO_WALLET=--no-wallet" >> "$GITHUB_ENV"
fi
# - name: 'Run tests'
# run: bats e2e/bash/icx.bash
aggregate:
name: e2e:required
if: ${{ always() }}
needs: [ test ]
runs-on: ubuntu-latest
steps:
- name: check e2e test result
if: ${{ needs.test.result != 'success' }}
run: exit 1