-
-
Notifications
You must be signed in to change notification settings - Fork 4
72 lines (69 loc) · 1.87 KB
/
ci.yml
File metadata and controls
72 lines (69 loc) · 1.87 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Continuous Integration
on:
# Main branch updated
push:
branches:
- main
# Pull request
pull_request:
types:
# Newly opened
- opened
# Updated (excludes change of base branch)
- synchronize
jobs:
test:
strategy:
matrix:
platform: [ ubuntu-latest, macos-latest, windows-latest ]
node-version: [ ^22.0.0, ^24.0.0 ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v6
with:
version: 10
- run: pnpm install
- run: ./node_modules/.bin/c8 --reporter=lcovonly pnpm test
- uses: codecov/codecov-action@v6.0.1
release-readiness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ^24.0.0
- uses: pnpm/action-setup@v6
with:
version: 10
- run: pnpm install
- run: pnpm run release-readiness
dependabot-approveOrMerge:
needs: [test, release-readiness]
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v6
- name: Assess changes
uses: tony84727/changed-file-filter@v0.2.5
id: filter
with:
filters: |
requirementsChanged:
- 'package.json'
- name: Merge lockfile changes
uses: fastify/github-action-merge-dependabot@v3.12.0
if: steps.filter.outputs.requirementsChanged == 'false'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Approve requirement changes
uses: fastify/github-action-merge-dependabot@v3.12.0
if: steps.filter.outputs.requirementsChanged == 'true'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
approve-only: true