-
Notifications
You must be signed in to change notification settings - Fork 0
114 lines (93 loc) · 2.76 KB
/
ci.yml
File metadata and controls
114 lines (93 loc) · 2.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
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
name: CI
on: [push]
permissions:
contents: read
jobs:
workspace-ci:
name: Workspace CI
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x, latest]
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
with:
fetch-depth: 0
- uses: ./.github/reusable-workflows/setup-repo
with:
node-version: ${{ matrix.node-version }}
- name: Check for a changelog entry
if: ${{ github.ref != 'refs/heads/prepare-release' && github.actor != 'dependabot[bot]' }}
run: |
pnpm run changelog:status:ci
- name: Run CI checks
run: |
pnpm run all:ci
- name: Report test coverage to coveralls.io
uses: coverallsapp/github-action@0a51d2e0b5417d06e4ecceb534aec87defc53926
with:
github-token: ${{ github.token }}
fail-on-error: false
package-ci:
name: Package CI
runs-on: ubuntu-latest
strategy:
matrix:
package-name: [basic-library-template, react-library-template ]
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
- uses: ./.github/reusable-workflows/setup-repo
with:
node-version: nvmrc
- name: Run CI checks for package
run: |
cd packages/${{ matrix.package-name }}
pnpm run all:ci
demo-ci:
name: Demo CI
runs-on: ubuntu-latest
strategy:
matrix:
demo-name: [hello-world-cli, hello-world-ui]
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
- uses: ./.github/reusable-workflows/setup-repo
with:
node-version: lts/*
use-lockfile: false
- name: Run CI checks for demo
run: |
cd demos/${{ matrix.demo-name }}
pnpm run all:ci
external-test-ci:
name: External-Test CI
runs-on: ubuntu-latest
strategy:
matrix:
external-test-name:
[
bun-vite5,
cra4-react16,
cra5-react18,
nextjs13-playwright,
remix-playwright,
vite4-react18-swc,
node20-cjs,
node20-esm,
node22-cjs,
node22-esm,
node24-cjs,
node24-esm,
]
steps:
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
- uses: ./.github/reusable-workflows/setup-repo
with:
node-version: nvmrc
use-lockfile: false
- name: Yalc publish
run: |
./scripts/update-external-test.sh ${{ matrix.external-test-name }}
- name: Run CI checks for external-test
run: |
./scripts/run-external-test.sh ${{ matrix.external-test-name }} run-ci