-
-
Notifications
You must be signed in to change notification settings - Fork 89
40 lines (38 loc) · 1.03 KB
/
build-lint.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
name: Build and Lint
on:
push:
branches: [main]
pull_request:
jobs:
build-lint:
name: Build and Lint
env:
INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }}
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: yarn allow-scripts
- run: yarn lint
- name: Ensure demo build script works
run: yarn demo --all
- name: Validate RC changelog
if: ${{ startsWith(github.head_ref, 'release/') }}
run: yarn auto-changelog validate --rc
- name: Validate changelog
if: ${{ !startsWith(github.head_ref, 'release/') }}
run: yarn auto-changelog validate
all-jobs-pass:
name: All jobs pass
runs-on: ubuntu-20.04
needs:
- build-lint
steps:
- run: echo "Great success!"