-
Notifications
You must be signed in to change notification settings - Fork 78
59 lines (48 loc) · 1.41 KB
/
check.yaml
File metadata and controls
59 lines (48 loc) · 1.41 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
49
50
51
52
53
54
55
56
57
58
59
name: Run Checks
on:
workflow_call:
secrets:
MANAGEMENT_TOKEN:
required: true
DELIVERY_TOKEN:
required: true
EXPORT_SPACE_ID:
required: true
EXPORT_SPACE_ID_EMBARGOED_ASSETS:
required: true
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Restore the build folders
uses: actions/cache/restore@v4
with:
path: |
dist
key: build-cache-${{ github.run_id }}-${{ github.run_attempt }}
fail-on-cache-miss: true
# Prior CI pipeline did not lint or format, skipping for now
# - name: Run linter
# run: npm run lint
# - name: Check formatting
# run: npm run format:check
- name: Run unit tests
run: npm run test:unit
- name: Run integration tests
run: npm run test:integration
env:
MANAGEMENT_TOKEN: ${{ secrets.MANAGEMENT_TOKEN }}
DELIVERY_TOKEN: ${{ secrets.DELIVERY_TOKEN }}
EXPORT_SPACE_ID: ${{ secrets.EXPORT_SPACE_ID }}
EXPORT_SPACE_ID_EMBARGOED_ASSETS: ${{ secrets.EXPORT_SPACE_ID_EMBARGOED_ASSETS }}