generated from Open-Attestation/react-template
-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (38 loc) · 1.02 KB
/
test_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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Lint & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Packages
# Solution to solve the problem with older version package
# that fails on git checkout with ssh
run: |
git config --global url."https://".insteadOf git://
git config --global url."https://".insteadOf git+https://
git config --global url."https://".insteadOf ssh://git
npm ci
- name: Check Snyk
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Check Lint
run: npm run lint
- name: Check Type
run: npm run lint:type
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Integration Test
run: npm run integration:ci