-
Notifications
You must be signed in to change notification settings - Fork 300
52 lines (48 loc) · 1.21 KB
/
ci.yml
File metadata and controls
52 lines (48 loc) · 1.21 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
name: e2e
on:
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
strategy:
matrix:
os:
- macos-26
- ubuntu-24.04
- windows-2025
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.2
- name: Setup Volta
uses: volta-cli/action@v5.0.0
- name: Install third party dependencies
run: npm ci
- name: Check third party dependencies for vulnerabilities
run: npm audit
- name: Check for linting errors
run: npm run lint
- name: Run test suite
run: npm run test:cov
env:
CI: true
- name: Upload coverage artifact
if: always()
uses: actions/upload-artifact@v7.0.1
with:
name: coverage-${{ matrix.os }}
path: coverage
- name: Report Coverage
if: always()
uses: davelosert/vitest-coverage-report-action@v2.11.2
with:
name: Vitest Coverage (${{ matrix.os }})
json-summary-path: coverage/coverage-summary.json