-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (46 loc) · 1.18 KB
/
ci.yml
File metadata and controls
49 lines (46 loc) · 1.18 KB
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
name: CI
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
node: ["22.x"]
platform: [ubuntu-latest]
name: Node v${{matrix.node}} ((${{matrix.platform}}))
runs-on: ${{matrix.platform}}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{matrix.node}}
- name: install dependencies
run: npm ci
- name: lint code
run: npm run lint
- name: build project
run: npm run build
- name: run tests
run: npm run test
- name: coverage
uses: codecov/codecov-action@v4
if: github.actor != 'dependabot[bot]'
with:
fail_ci_if_error: true
verbose: false
token: ${{ secrets.CODECOV_TOKEN }}
env:
CI: true
release-preview:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: "22.x"
- name: install dependencies
run: npm ci
- name: build project
run: npm run build
- name: release preview with pkr-pr-new
run: npx pkg-pr-new publish