-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.06 KB
/
ci.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
name: Compile & Linting
on:
pull_request:
branches:
- dev
push:
branches:
- dev
env:
NODE_VERSION: 20
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{env.NODE_VERSION}}
- name: Code Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm i
- name: Typescript Compile
run: npm run compile
lint:
runs-on: ubuntu-latest
needs: compile
steps:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{env.NODE_VERSION}}
- name: Code Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm i
- name: Lint Code
run: npm run lint
- name: Format Code
run: npm run format