-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (43 loc) · 1.2 KB
/
build-and-test.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
name: Build and Test Packages
on: [push]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: cache dependencies
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: install node
uses: actions/setup-node@v3
with:
node-version: "v18.12.1"
cache: "yarn"
- name: corepack enable
run: corepack enable
- name: install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-e15e33a07c0920189fc336391f538c3dad53da73
- name: install Rapidsnark dependencies
run: sudo apt-get install -y build-essential libgmp-dev libsodium-dev nasm nlohmann-json3-dev
- name: yarn install
run: |
yarn install --immutable
- name: Yarn lint
run: |
yarn lint
- name: yarn prettier
run: |
yarn prettier:check
- name: yarn build
run: |
yarn build
- name: yarn test:unit
run: |
yarn test:unit
- name: yarn test:fork
run: |
yarn test:fork