forked from Expensify/eslint-config-expensify
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 759 Bytes
/
test.yml
File metadata and controls
35 lines (29 loc) · 759 Bytes
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
name: Jest unit tests
on:
pull_request:
types: [opened, synchronize]
concurrency:
group: jest-${{ github.ref }}
cancel-in-progress: true
jobs:
jest:
runs-on: blacksmith-2vcpu-ubuntu-2404
env:
CI: true
steps:
- name: Checkout
# v4
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Setup Node
# v4
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
with:
node-version: 20
- name: Run npm install
uses: nick-fields/retry@3f757583fb1b1f940bc8ef4bf4734c8dc02a5847
with:
timeout_minutes: 30
max_attempts: 3
command: npm ci
- name: Run Jest tests
run: npm run test