-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.13 KB
/
nextjs-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
50
name: NextJS Lint
on:
push:
branches:
- main
paths:
- ".github/workflows/nextjs-lint.yaml"
- "nextjs/**"
- "hardhat/**"
pull_request:
paths:
- ".github/workflows/nextjs-lint.yaml"
- "nextjs/**"
- "hardhat/**"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js (Hardhat)
uses: actions/setup-node@v2
with:
cache: yarn
cache-dependency-path: hardhat/yarn.lock
- name: Yarn install (Hardhat)
run: cd ./hardhat && yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compile contract (Hardhat)
run: cd ./hardhat && yarn hardhat compile
- name: Setup Node.js (NextJS)
uses: actions/setup-node@v2
with:
cache: yarn
cache-dependency-path: nextjs/yarn.lock
- name: Yarn install (NextJS)
run: cd ./nextjs && yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run ESLint (NextJS)
run: cd ./nextjs && yarn lint