-
Notifications
You must be signed in to change notification settings - Fork 200
36 lines (28 loc) · 918 Bytes
/
build.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
name: Build
# Verifies build artifacts in pull requests.
# Note: this workflow does not trigger on pushes to main,
# because the release workflow includes a build+verify step.
on:
pull_request:
jobs:
build:
name: Build and validate artifacts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup
uses: ./.github/actions/setup
- name: Build and link CLI
working-directory: packages/cli
run: yarn build && yarn link
- name: Run codegen
run: yarn codegen
- name: Outdated files, run `yarn codegen` and commit them
uses: ./.github/actions/require-empty-diff
- name: Generate gas reports
run: yarn gas-report
- name: Outdated files, run `yarn gas-report` and commit them
uses: ./.github/actions/require-empty-diff