-
Notifications
You must be signed in to change notification settings - Fork 572
48 lines (38 loc) · 1.19 KB
/
ci-regenerate-fixtures.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Node.js CI Regenerate Fixtures
on:
schedule:
- cron: '0 15 * * 2' # Every Tuesday 7AM PST
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
ref: staging
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.12.1'
cache: 'yarn'
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
shared-key: nodejs
- name: Install packages
run: yarn --non-interactive --frozen-lockfile
- name: Delete fixture files
run: node ./tools/delete-fixtures.js
- name: Run tests
run: JEST_TIMEOUT=1000000000 yarn test:coverage --maxWorkers=2 --workerIdleMemoryLimit=2000MB
- name: Run slow tests
run: JEST_TIMEOUT=1000000000 yarn test:slow:coverage --maxWorkers=2 --workerIdleMemoryLimit=2000MB
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@master
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.GITHUB_ACTIONS_SLACK_WEBHOOK }}