-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.21 KB
/
test.yml
File metadata and controls
48 lines (42 loc) · 1.21 KB
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
48
name: Test
on:
workflow_call:
inputs:
os:
required: true
type: string
jobs:
build_and_test:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
# EOL Verisons are excluded here: 21.x
# Also excluded is versions that don't support node --test: 20.x
node-version: [24.x]
shard: [1/1]
name: Node v${{matrix.node-version}} on ${{inputs.os}} ${{matrix.shard}}
runs-on: ${{inputs.os}}
env:
CI: true
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{matrix.node-version}}
uses: actions/setup-node@v6
with:
node-version: ${{matrix.node-version}}
cache: pnpm
- run: pnpm install --prefer-offline --frozen-lockfile
- run: pnpm run build
- run:
pnpm run test -- --test-force-exit --test-shard=${{matrix.shard}}
--test-reporter=spec --test-reporter=junit
--test-reporter-destination=stdout
--test-reporter-destination=coverage/junit.xml
env:
CI: true
DEBUG: testcontainers:containers