-
Notifications
You must be signed in to change notification settings - Fork 0
159 lines (138 loc) · 4.71 KB
/
ci-integration.yml
File metadata and controls
159 lines (138 loc) · 4.71 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# ──────────────────────────────────────────────────────────────
# CI Integration Tests
# ──────────────────────────────────────────────────────────────
#
# Platform notes:
#
# macos-15-intel — Paid runner ($0.062/min, no free tier).
# This is the last Intel macOS image GitHub
# will offer, available until August 2027.
# After that, x86_64 macOS is unsupported.
#
# Missing platforms (not testable with standard GitHub runners):
#
# linux-arm64 — GitHub does not offer ARM64 Linux runners
# in the standard tier. Available only as
# "larger runners" which require a paid
# GitHub Teams or Enterprise plan.
#
# linux-x64-musl — Standard ubuntu-latest runners use glibc.
# Testing musl would require a container-based
# job (e.g. alpine:latest), but kidd produces
# a standalone binary so the glibc test on
# ubuntu-latest provides sufficient coverage
# for the Linux x64 code path. The musl
# binary is a link-time variant, not a
# separate code path.
# ──────────────────────────────────────────────────────────────
name: 'ci-integration'
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
paths:
- packages/**
- examples/**
- tests/**
- vitest.config.ts
- package.json
- pnpm-lock.yaml
- turbo.json
- .github/workflows/ci-integration.yml
push:
branches: [main]
paths:
- packages/**
- examples/**
- tests/**
- vitest.config.ts
- package.json
- pnpm-lock.yaml
- turbo.json
- .github/workflows/ci-integration.yml
concurrency:
group: ci-integration-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
name: 'Setup & Build'
runs-on: macos-latest
if: ${{ !github.event.pull_request.draft }}
timeout-minutes: 15
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- name: 'Checkout code'
uses: actions/checkout@v5
- name: 'Setup pnpm'
uses: pnpm/action-setup@v4
- name: 'Setup Node.js'
uses: actions/setup-node@v5
with:
node-version: '24'
cache: 'pnpm'
- name: 'Setup Bun'
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: 'Install dependencies'
run: pnpm install --frozen-lockfile
- name: 'Build packages'
run: pnpm build
- name: 'Rebuild bin links'
run: pnpm install --frozen-lockfile
- name: 'Build examples (all platforms)'
run: pnpm turbo run build --filter='./examples/*'
- name: 'Upload build artifacts'
uses: actions/upload-artifact@v4
with:
name: examples-dist
retention-days: 1
path: |
examples/*/dist
examples/*/cli/dist
test-os:
name: 'Integration / ${{ matrix.name }}'
needs: build
timeout-minutes: 10
strategy:
fail-fast: true
matrix:
include:
- os: macos-latest
name: macOS ARM
- os: macos-15-intel
name: macOS Intel
- os: ubuntu-latest
name: Linux x64
- os: windows-latest
name: Windows x64
runs-on: ${{ matrix.os }}
steps:
- name: 'Checkout code'
uses: actions/checkout@v5
- name: 'Setup pnpm'
uses: pnpm/action-setup@v4
- name: 'Setup Node.js'
uses: actions/setup-node@v5
with:
node-version: '24'
cache: 'pnpm'
- name: 'Install dependencies'
run: pnpm install --frozen-lockfile
- name: 'Download build artifacts'
uses: actions/download-artifact@v4
with:
name: examples-dist
path: examples
- name: 'Restore binary permissions'
if: runner.os != 'Windows'
run: |
find examples -path '*/dist/*' -type f ! -name '*.mjs' ! -name '*.map' ! -name '*.exe' -exec chmod +x {} +
find examples -name '*.mjs' -path '*/dist/*' -type f -exec chmod +x {} +
- name: 'Run integration tests'
run: pnpm test:integration