-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (44 loc) · 1.17 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
47
48
49
50
51
52
53
54
55
56
name: Continous Integration
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Test and build the project
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install Node deps
run: npm i
- name: Run ESLint
uses: wearerequired/[email protected]
with:
eslint: true
eslint_extensions: "ts"
prettier: true
prettier_extensions: "ts"
- name: Fix Linting
run: npm run lint:fix
- name: Build
run: npm run build
code_coverage_check:
name: Check the code coverage quality
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install Node deps
run: npm i
- name: Push the coverage
run: npm run coverage:push -- --token=${{ secrets.CODECOV_TOKEN }}