Skip to content

Commit 7be4a08

Browse files
authored
ci: run compatibility matrix only for releases (#760)
1 parent afcfbe6 commit 7be4a08

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
install_and_test_win:
13+
if: startsWith(github.ref, 'refs/tags/')
1314
runs-on: windows-latest
1415
timeout-minutes: 5
1516
strategy:
@@ -46,6 +47,43 @@ jobs:
4647
pnpm test:post || exit /b 1
4748
4849
install_and_test:
50+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
51+
runs-on: ubuntu-latest
52+
timeout-minutes: 5
53+
54+
name: Linux - Node 24 - TS 7.0.2
55+
steps:
56+
- uses: actions/checkout@v6.0.2
57+
with:
58+
fetch-depth: 0
59+
60+
- uses: pnpm/action-setup@v6.0.8
61+
62+
- name: Setup Node.js
63+
uses: actions/setup-node@v6.3.0
64+
with:
65+
node-version: 24
66+
cache: 'pnpm'
67+
68+
- name: Install Dependencies
69+
run: pnpm install --frozen-lockfile --prefer-offline
70+
71+
- name: Setup TypeScript and React types
72+
run: pnpm add --save-dev typescript@7.0.2 @types/react@19.2.14 @types/react-dom@19.2.3 --prefer-offline
73+
74+
- name: Typecheck
75+
run: pnpm typecheck
76+
77+
- name: Build
78+
run: pnpm build
79+
80+
- name: Test
81+
run: |
82+
pnpm test
83+
pnpm test:post
84+
85+
install_and_test_compat:
86+
if: startsWith(github.ref, 'refs/tags/')
4987
runs-on: [ubuntu-latest]
5088
timeout-minutes: 5
5189
strategy:
@@ -101,7 +139,7 @@ jobs:
101139
102140
release:
103141
runs-on: ubuntu-latest
104-
needs: [install_and_test]
142+
needs: [install_and_test_compat, install_and_test_win]
105143
if: startsWith(github.ref, 'refs/tags/')
106144
permissions:
107145
contents: read

0 commit comments

Comments
 (0)