-
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 944 Bytes
/
test.yml
File metadata and controls
47 lines (39 loc) · 944 Bytes
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
name: Lint
on:
- push
- pull_request
jobs:
deploy:
name: Test Code
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js v16
uses: actions/setup-node@v1
with:
node-version: 16.13.0
- uses: actions/cache@v5
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install deps
run: |
node -v
yarn -v
yarn --frozen-lockfile
env:
CI: true
NODE_OPTIONS: --max-old-space-size=4096
- name: '[API] Build'
id: build
run: yarn typecheck
env:
CI: true
- name: 'Run linter'
run: yarn lint:fix
id: lint
env:
CI: true