-
-
Notifications
You must be signed in to change notification settings - Fork 71
32 lines (27 loc) · 827 Bytes
/
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
name: Lint Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ] # Remove typescript-migration after completion
jobs:
prettier:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.event.pull_request.base.ref }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test