-
-
Notifications
You must be signed in to change notification settings - Fork 31
43 lines (39 loc) · 1 KB
/
test-pr.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
39
40
41
42
43
name: 🎯 Test PR
on:
pull_request:
types: [opened, reopened, synchronize]
env:
CI: true
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18]
typescript:
[
"default",
"~4.6.4",
"~4.7.4",
"~4.8.3",
"~4.9.5",
"~5.0.4",
"~5.1.6",
"~5.2.2",
"~5.3.3",
"~5.4.2",
]
name: Node ${{ matrix.node }} / TS ${{ matrix.typescript }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
fetch-depth: 0
- name: Install node_modules
uses: ./.github/actions/install-node-modules
with:
node-version: ${{ matrix.node }}
typescript-version: ${{ matrix.typescript }}
- name: Run tests
run: yarn test