-
Notifications
You must be signed in to change notification settings - Fork 24
40 lines (33 loc) · 1.05 KB
/
test-snx-ci.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
name: Test-snx-ci
on:
pull_request:
branches: [main, alpha, dev]
jobs:
test-snx-ci:
runs-on: ubuntu-latest
env:
CANNON_DIRECTORY: ${{ github.workspace }}/.cannon
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: '20.5.1'
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-ef62fdbab638a275fc19a2ff8fe8951c3bd1d9aa
- name: Cache used IPFS files
uses: actions/cache@v4
with:
key: cannon-ipfs-cache_${{ runner.os }}-${{ github.job }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
restore-keys: cannon-ipfs-cache_
path: ${{ env.CANNON_DIRECTORY }}/ipfs_cache
save-always: true
- run: pnpm i --frozen-lockfile
- run: pnpm build
- name: Synthetix CI Downstream
run: cd ./packages/cli && pnpm test-snx-ci