-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (42 loc) · 1.19 KB
/
release.yml
File metadata and controls
55 lines (42 loc) · 1.19 KB
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
name: Algorithm release
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 17.x, 18.x]
steps:
- name: Checkout nodejs
- uses: actions/checkout@v2
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: snyk.sarif
- name: Check cache
uses: actions/cache@v3.0.2
- name: Run CI process
run: npm ci
- name: Start installation process
run: npm i
- name: Check Formatter rules
run: npm run fomatter:check
- name: Check Linter rules
run: npm run linter:check
- name: Jest coverage report
uses: ArtiomTr/jest-coverage-report-action@v2.0.6
- name: Run Unit tests
run: npm run test
- name: Build a project
run: npm run build