-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (42 loc) · 1.23 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
name: Run e2e tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
jobs:
test-extension:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-12, ubuntu-20.04 ]
test_file_path: [ extensions/nns/e2e/tests/nns.bash, extensions/sns/e2e/tests/sns.bash ]
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install brew
uses: Homebrew/actions/setup-homebrew@master
if: contains(matrix.os, 'macos-12') == false
- name: Install sponge and timeout
run: brew install coreutils sponge
- uses: cargo-bins/cargo-binstall@main
- name: Install cargo-dist
run: cargo binstall cargo-dist@0.4.3 -y
- name: Install IC SDK (dfx)
uses: dfinity/setup-dfx@main
- name: run test
run: timeout 2400 e2e/bats/bin/bats ${{ matrix.test_file_path }}
aggregate:
name: e2e:required
if: ${{ always() }}
needs: [test-extension]
runs-on: ubuntu-latest
steps:
- name: check e2e test result
if: ${{ needs.test-extension.result != 'success' }}
run: exit 1