generated from JoshuaKGoldberg/create-typescript-app
-
-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (32 loc) · 744 Bytes
/
test.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
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
with:
node-version: ${{ matrix.node_version }}
- run: pnpm remove typescript
- run: pnpm add -D typescript@"${{ matrix.ts_version }}"
- run: pnpm run test --coverage
- if: matrix.node_version == '22.x'
name: Codecov
uses: codecov/codecov-action@v5
with:
flags: ${{ matrix.ts_version }}
strategy:
fail-fast: false
matrix:
node_version:
- 18.x
- 22.x
- latest
ts_version:
- 4.8.4
- latest
name: Test
on:
pull_request: ~
push:
branches:
- main