-
Notifications
You must be signed in to change notification settings - Fork 15
36 lines (32 loc) · 943 Bytes
/
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
name: 👩⚕️ Star Atlas Factory Health Checks 👨⚕️️
on:
pull_request:
branches: [ main, develop ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.17.1 ]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch git commit history
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run build
run: npm run build
- name: Run linter
run: npm run lint
- name: Run tests
run: npm run test
- name: Check the dependencies of all packages for vulnerabilities
run: npm audit --audit-level=critical
- name: Ensure docs build
run: npm run docs