-
-
Notifications
You must be signed in to change notification settings - Fork 193
48 lines (41 loc) · 1.17 KB
/
eslint.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
41
42
43
44
45
46
47
48
name: ESLint
on:
workflow_dispatch:
pull_request:
push:
branches:
- '*'
- '!docs'
- '!gh-pages'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: ESLint
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Node v18
uses: actions/setup-node@v1
with:
node-version: 20
- name: Cache yarn
uses: actions/cache@v3
with:
path: .yarn/cache
key: yarn-cache-node-20
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Run ESLint
run: yarn lint
- name: Run TSC
run: yarn build:check
- name: Run Unit Tests
run: yarn test