Repository navigation
69 lines (60 loc) · 1.76 KB
/
Copy pathci.yml
File metadata and controls
69 lines (60 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
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
jobs:
lint-workflows:
if: github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/lint-workflows.yml
check:
name: Node ${{ matrix.node }} check (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: ${{ github.event_name == 'pull_request' }}
matrix:
node:
- 22.23.5
- 24.22.3
os:
- xcode-27
- windows-latest
event: ["${{ github.event_name }}"]
# Qualify both native platforms across the PR and its merge.
exclude:
- event: pull_request
node: 22.23.5
- event: push
node: 24.22.3
include:
- node: 22.23.5
os: ubuntu-latest
- node: 24.22.3
os: ubuntu-latest
- node: 26.13.1
os: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Node
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ matrix.node }}
- name: Set up pnpm
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
with:
cache: true
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check
run: pnpm run check