-
-
Notifications
You must be signed in to change notification settings - Fork 245
53 lines (43 loc) · 1.19 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: Check dependency duplications
uses: vazco/open-standards/actions/npm-dependency-duplications/@master
- name: Check dependency vulnerabilities
uses: vazco/open-standards/actions/npm-dependency-vulnerabilities/@master
- name: Install
run: pnpm install
- name: Check linting
run: pnpm lint:code
- name: Check formatting
run: pnpm lint:text
- name: Check types
run: pnpm lint:types
- name: Test
run: pnpm coverage
- name: Report coverage
uses: codecov/[email protected]
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}