-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (37 loc) · 1.24 KB
/
standard-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
40
41
42
43
44
45
46
47
48
49
50
51
name: Standard Test
on: [push]
jobs:
unit-test:
name: unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Prepare Sushi Lib
run: ./prep-sushi.sh
- name: Install Dependencies
run: nix develop -c npm install
- name: Lint
run: nix develop -c npm run lint
- name: Run Tests
run: nix develop -c npm run unit-test
e2e-test:
name: e2e fork test
runs-on: ubuntu-latest
strategy:
matrix:
chain: [POLYGON, ARBITRUM, ETH, FLARE, BSC, BASE, LINEA, MATCHAIN]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Prepare Sushi Lib
run: ./prep-sushi.sh
- name: Install Dependencies
run: nix develop -c npm install
- name: Set Chain Rpc Key
run: echo "RPC=CI_DEPLOY_${{ matrix.chain }}_RPC_URL" >> $GITHUB_ENV
- name: Run Tests
run: TEST_${{ matrix.chain }}_RPC=${{ secrets[env.RPC] }} nix develop -c npm run e2e-test