-
-
Notifications
You must be signed in to change notification settings - Fork 67
36 lines (33 loc) · 857 Bytes
/
test.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: Test
on:
# Triggers the workflow on push events
push:
# Triggers the workflow on pull request events
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: 'Format check'
cmd: 'npm run format:check'
- name: 'Lint check'
cmd: 'npm run lint'
- name: 'Unit tests'
cmd: 'npm run test:ci'
- name: 'Build'
cmd: 'npm run build'
name: ${{ matrix.name }}
steps:
- uses: actions/setup-node@v3
- uses: actions/checkout@v3
- name: Install Deps
run: npm ci --ignore-scripts
- name: ${{ matrix.name }}
run: ${{ matrix.cmd }}