generated from JoshuaKGoldberg/create-typescript-app
-
-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (33 loc) · 764 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
38
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 == '18.x'
name: Codecov
uses: codecov/codecov-action@v3
with:
flags: ${{ matrix.ts_version }}
strategy:
fail-fast: false
matrix:
node_version:
- 16.14.0
- 18.x
ts_version:
- 4.3.5
- 4.6.4
- 4.9.5
- latest
name: Test
on:
pull_request: ~
push:
branches:
- main