-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (47 loc) · 1.09 KB
/
check-frontend-lint.yaml
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
name: check-frontend
on:
pull_request:
branches:
- main
jobs:
test:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Git LFS Pull
run: |
git lfs pull
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Building contract abi
working-directory: contracts
run: |
forge --version
forge build --sizes
id: build
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 18.16.x
- name: Install
run: |
npm ci
(cd core && npm run build)
- name: Lint
working-directory: frontend
run: |
npx next lint --max-warnings=0
- name: Format
working-directory: frontend
run: |
npx eslint . --ext .ts --ext .tsx --quiet
- name: Export
working-directory: frontend
run: |
npm run export