-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 935 Bytes
/
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
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test-node:
name: Run tests
runs-on: macos-latest
permissions:
pull-requests: write
contents: read
checks: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npx playwright install
- run: npm test
- name: Report code coverage
uses: koddsson/github-actions-report-lcov@main
with:
coverage-files: coverage/lcov.info
minimum-coverage: 90
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
with:
report_paths: './test-results.xml'