-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.26 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ci
on: push
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
name: ci
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow
permissions:
id-token: write
packages: read
contents: read
security-events: write
container:
image: ghcr.io/nayms/contracts-builder:latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "yarn"
- name: Configure Git Safe Directory
run: git config --global --add safe.directory ${{ github.workspace }}
- name: Install NPM packages
run: yarn install
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install solc
run: svm install 0.8.20 && svm use 0.8.20
- name: Compile
run: yarn build --sizes
id: build
- name: Run tests with coverage
run: yarn test-coverage
id: test
- name: Upload coverage report to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}