-
Notifications
You must be signed in to change notification settings - Fork 637
31 lines (30 loc) · 936 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
name: test
on:
workflow_call:
inputs:
node-version:
type: string
required: false
default: '20.x'
runs-on:
type: string
required: false
default: 'ubuntu-latest'
no-lockfile:
type: string
required: false
default: 'false'
jobs:
test:
name: "Tests [Node.js ${{ inputs.node-version }}, ${{ inputs.runs-on }}, ${{ inputs.no-lockfile == 'false' && 'Using yarn.lock' || 'Ignoring yarn.lock' }}]"
runs-on: ${{ inputs.runs-on }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn-install
with:
node-version: ${{ inputs.node-version }}
no-lockfile: ${{ inputs.no-lockfile }}
- name: Run Jest Tests
run: yarn jest --ci --maxWorkers 4 --reporters=default --reporters=jest-junit --rootdir='./'
env:
NIGHTLY_TESTS_NO_LOCKFILE: ${{ inputs.no-lockfile }}