Repository navigation
69 lines (57 loc) · 1.76 KB
/
Copy pathci.yml
File metadata and controls
69 lines (57 loc) · 1.76 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
60
61
62
63
64
65
66
67
68
69
name: CI
# No run on push to master: the merge queue already tested the exact merged
# commit, and a third run only held machines other changes were waiting on.
on:
pull_request:
merge_group:
permissions:
contents: read
# A newer push to the same pull request replaces the older run.
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
unit:
name: unit (${{ matrix.shard }}/8)
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4, 5, 6, 7, 8]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
package-manager-cache: false
- run: npm ci
- name: Unit tests
# Assigns expensive files first using measured GitHub run times.
# commands.test.js remains split by test/helpers/test-part.js.
env:
ATRIS_TEST_SPLIT: '1'
run: node scripts/ci-test-shard.js ${{ matrix.shard }}/8
decks:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
package-manager-cache: false
- run: npm ci
- name: Lint shipped deck specs
run: npm run lint:decks
# The required check. It passes only when every shard and the deck lint
# passed, so a skipped or cancelled shard can never count as green.
test:
if: always()
needs: [unit, decks]
runs-on: ubuntu-latest
steps:
- name: All checks passed
run: |
test "${{ needs.unit.result }}" = success
test "${{ needs.decks.result }}" = success