-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.21 KB
/
check.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
name: Check
on:
push:
branches:
- 'master'
pull_request:
types: [opened, reopened, synchronize, auto_merge_enabled]
branches-ignore:
- 'gh-pages'
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/npm-cache/
- run: npm install --prefer-offline --ignore-scripts --no-audit
shell: bash
test:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/npm-cache/
- run: npm run test:coverage -- -w 1 # set max workers to 1
- uses: coverallsapp/github-action@v1.2.5
with:
github-token: ${{ github.token }}
build:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/npm-cache/
- run: npm run build:prod
lint:
needs: install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/npm-cache/
- run: npm run lint:ci
- run: npm run lint:styles