-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (40 loc) · 1.17 KB
/
flow-pull-request-checks.yaml
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: PR Checks
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
- synchronize
concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
test:
name: Node v${{ matrix.node-version }} Tests
runs-on: [self-hosted, Linux, medium, ephemeral]
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout repository
uses: actions/checkout@v3 # pin@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4 # pin@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install packages
run: npm ci
- name: Run Jest Tests
run: npm run test
- name: Publish Test Report
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # pin@v2
if: ${{ !cancelled() }}
with:
check_name: Jest Node ${{ matrix.node-version }} Test Results
check_run_disabled: true
json_thousands_separator: ","
junit_files: "**/*.xml"