-
-
Notifications
You must be signed in to change notification settings - Fork 3
152 lines (127 loc) · 3.81 KB
/
optional-deps-ecosystem.yml
File metadata and controls
152 lines (127 loc) · 3.81 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
name: Optional Deps Consumer Contract
on:
pull_request:
paths:
- 'examples/**'
- 'scripts/assert-optional-deps-canary-matrix.mjs'
- 'scripts/assert-canary-one-run-builds.mjs'
- 'scripts/assert-stable-install-modes.mjs'
- 'scripts/assert-stable-pnpm-postcss-repro.mjs'
- '.github/workflows/optional-deps-ecosystem.yml'
- 'package.json'
- 'pnpm-lock.yaml'
push:
branches:
- main
paths:
- 'examples/**'
- 'scripts/assert-optional-deps-canary-matrix.mjs'
- 'scripts/assert-canary-one-run-builds.mjs'
- 'scripts/assert-stable-install-modes.mjs'
- 'scripts/assert-stable-pnpm-postcss-repro.mjs'
- '.github/workflows/optional-deps-ecosystem.yml'
- 'package.json'
- 'pnpm-lock.yaml'
workflow_dispatch:
schedule:
- cron: '30 6 * * *'
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
permissions:
contents: read
concurrency:
group: optional-deps-ecosystem-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
versioned-ecosystem:
name: ecosystem matrix (${{ matrix.os }} / ${{ matrix.pm }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
pm: pnpm
- os: ubuntu-latest
pm: npm
- os: ubuntu-latest
pm: yarn
- os: ubuntu-latest
pm: bun
- os: macos-latest
pm: pnpm
- os: windows-latest
pm: pnpm
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable corepack for Yarn
if: matrix.pm == 'yarn'
run: corepack enable
- name: Setup Bun
if: matrix.pm == 'bun'
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Run optional deps ecosystem checks
run: node scripts/assert-optional-deps-canary-matrix.mjs --pm ${{ matrix.pm }}
first-run-repros:
if: github.event_name != 'pull_request' || github.base_ref == 'main'
name: first-run reproducibility guards
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Assert one-run builds
run: pnpm run test:canary-one-run
- name: Assert stable install modes
run: pnpm run test:stable-install-modes -- --pm pnpm
- name: Assert stable pnpm PostCSS repro
run: pnpm run test:stable-pnpm-postcss-repro
install-vs-exec-matrix:
if: github.event_name != 'pull_request' || github.base_ref == 'main'
name: install vs exec (${{ matrix.pm }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- pm: npm
- pm: pnpm
- pm: yarn
- pm: bun
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable corepack for Yarn
if: matrix.pm == 'yarn'
run: corepack enable
- name: Setup Bun
if: matrix.pm == 'bun'
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Assert install and exec modes
run: pnpm run test:stable-install-modes -- --pm ${{ matrix.pm }}