-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.22 KB
/
dev.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
43
44
45
46
# Dev workflow. Performs checks but does NOT release.
# Intended to be run on any pushed development branch (not main).
name: Dev branch checks
on:
push:
branches-ignore:
- main
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read # To publish a GitHub release.
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Check code style
run: npm run prettier:check
- name: Lint
run: npm run lint
- name: Test
run: npm run test:ci
- name: Clean dist/
run: npm run clean
- name: Build
run: npm run build
- name: Check license headers
uses: viperproject/check-license-header@v2
with:
path: './'
config: './.github/license-check/license-config.json'
strict: true
- name: Package
run: npm run package