-
Notifications
You must be signed in to change notification settings - Fork 142
60 lines (51 loc) · 1.52 KB
/
ci.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
49
50
51
52
53
54
55
56
57
58
59
60
name: CI
env:
VOLTA_FEATURE_PNPM: 1
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *' # daily, 7am
push:
branches:
- stable
pull_request:
branches: [stable]
concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
preflight:
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: lint
run: pnpm lint
- id: set-matrix
working-directory: test-packages/support
run: |
matrix_json=$(node ./suite-setup-util --matrix)
echo "matrix=$matrix_json" >> $GITHUB_OUTPUT
test:
needs: ['preflight']
name: ${{ matrix.name }}
runs-on: '${{ matrix.os }}-latest'
timeout-minutes: 60
strategy:
fail-fast: false
max-parallel: 50 # this is trying to avoid hitting API rate limits when too many tests are hitting the github API at once.
matrix: ${{fromJson(needs.preflight.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
use_lockfile: false
- name: Work around windows short path alias # https://github.com/actions/runner-images/issues/712
if: runner.os == 'Windows'
run: new-item D:\temp -ItemType Directory; echo "TEMP=D:\temp" >> $env:GITHUB_ENV
- name: suite
run: ${{ matrix.command }}
working-directory: ${{ matrix.dir }}