-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1.03 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
name: 'ci'
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions: write-all
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm run format:check >> "${GITHUB_STEP_SUMMARY}"
- run: npm run lint
- run: npm run test >> "${GITHUB_STEP_SUMMARY}"
- uses: ./
id: code_coverage_report_action
if: ${{ github.actor != 'dependabot[bot]'}}
with:
filename: 'coverage/clover.xml'
artifact_download_workflow_names: 'ci,cron'
badge: true
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: steps.code_coverage_report_action.outputs.file != '' && github.event_name == 'pull_request' && (success() || failure())
with:
recreate: true
path: code-coverage-results.md