-
Notifications
You must be signed in to change notification settings - Fork 350
45 lines (35 loc) · 1.06 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
name: Continuous Integration
on:
push:
branches: [master]
pull_request:
jobs:
run_ci_tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "16.14.0"
- name: Install Yarn
run: npm install -g [email protected]
- name: Install packages
run: yarn install --frozen-lockfile
- name: Setup local environment
run: cp config.js.example config.js && ./start-ganache.sh
- name: Run static checks
run: yarn static-check
- name: Run size check
run: yarn contract-size
- name: Run tests
run: yarn test
scan:
needs: run_ci_tests
if: github.event_name == 'pull_request'
uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1
release-sbom:
needs: run_ci_tests
if: github.event_name == 'push'
uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1