-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (44 loc) · 1.28 KB
/
test.yml
File metadata and controls
47 lines (44 loc) · 1.28 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
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['20', '22.14', '24']
name: Run tests and ESLint (Node ${{ matrix.node }})
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run lint:all
- run: pnpm test --coverage
- name: Coveralls (unit)
if: ${{ matrix.node == '20' }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: unit
path-to-lcov: ./coverage-unit/lcov.info
- name: Coveralls (e2e)
if: ${{ matrix.node == '20' }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
flag-name: e2e
path-to-lcov: ./coverage-e2e/lcov.info
finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true