Skip to content

Commit 8c7c8e2

Browse files
committed
chore: remove test-matrix job to simplify CI
- Node 18 is EOL (End of Life) - Node 21 is not LTS - Main test job already runs on Node 22 (current LTS) - Removing to avoid optional dependency installation issues
1 parent af60037 commit 8c7c8e2

File tree

1 file changed

+1
-59
lines changed

1 file changed

+1
-59
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -123,64 +123,10 @@ jobs:
123123
playground/.output/
124124
retention-days: 7
125125

126-
# Matrix testing across different Node.js versions
127-
test-matrix:
128-
runs-on: ubuntu-latest
129-
needs: test
130-
strategy:
131-
matrix:
132-
node-version: [18, 20, 21]
133-
steps:
134-
- name: Checkout code
135-
uses: actions/checkout@v4
136-
137-
- name: Install pnpm
138-
uses: pnpm/action-setup@v4
139-
140-
- name: Setup Node.js ${{ matrix.node-version }}
141-
uses: actions/setup-node@v4
142-
with:
143-
node-version: ${{ matrix.node-version }}
144-
cache: 'pnpm'
145-
146-
- name: Install dependencies
147-
run: |
148-
# Install dependencies - don't use --frozen-lockfile for matrix tests to allow optional deps
149-
pnpm install
150-
151-
- name: Ensure oxc-parser native bindings are installed
152-
run: |
153-
# Explicitly install the native binding as it's an optional dependency
154-
# Check if it exists first to avoid unnecessary work
155-
if ! test -d node_modules/@oxc-parser/binding-linux-x64-gnu 2>/dev/null; then
156-
echo "Installing oxc-parser native bindings..."
157-
pnpm add --save-optional @oxc-parser/binding-linux-x64-gnu@latest || \
158-
pnpm install @oxc-parser/binding-linux-x64-gnu || \
159-
echo "Native bindings installation failed, continuing..."
160-
else
161-
echo "Native bindings already installed"
162-
fi
163-
164-
- name: Cache build outputs
165-
uses: actions/cache@v4
166-
with:
167-
path: |
168-
.nuxt
169-
dist
170-
key: ${{ runner.os }}-build-${{ github.sha }}
171-
restore-keys: |
172-
${{ runner.os }}-build-
173-
174-
- name: Run prepare
175-
run: pnpm dev:prepare
176-
177-
- name: Run tests
178-
run: pnpm test
179-
180126
# Summary job that will be used as a required status check
181127
ci-summary:
182128
runs-on: ubuntu-latest
183-
needs: [lint, test, build, test-matrix]
129+
needs: [lint, test, build]
184130
if: always()
185131
steps:
186132
- name: Check all jobs status
@@ -197,8 +143,4 @@ jobs:
197143
echo "❌ Build job failed"
198144
exit 1
199145
fi
200-
if [[ "${{ needs.test-matrix.result }}" != "success" ]]; then
201-
echo "❌ Matrix test job failed"
202-
exit 1
203-
fi
204146
echo "✅ All CI jobs passed successfully!"

0 commit comments

Comments
 (0)