-
-
Notifications
You must be signed in to change notification settings - Fork 30
32 lines (28 loc) 路 853 Bytes
/
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
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"]
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