-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (37 loc) · 887 Bytes
/
ci-cd.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
name: CI/CD
on:
push:
branches:
- main
- rc
pull_request:
jobs:
dependabot:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
merge-method: 'rebase'
target: 'minor'
github-token: ${{ github.token }}
test:
name: Test with Node v${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 20 ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
- name: Publish coverage report
if: github.ref == 'refs/heads/main'
run: npm run publish-coverage
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}