Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 0 additions & 131 deletions .github/workflows/test-windows.yml

This file was deleted.

42 changes: 31 additions & 11 deletions .github/workflows/test-ubuntu.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test (Ubuntu)
name: Test

# Controls when the action will run.
on:
Expand Down Expand Up @@ -47,13 +47,17 @@ jobs:
- "!**/dictionary.txt"

# ======== ut ========
ut-ubuntu:
runs-on: ubuntu-latest
ut:
runs-on: ${{ matrix.os }}
needs: changes
if: ${{ needs.changes.outputs.changed == 'true' }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18, 20, 22]
include:
- node-version: 18
os: windows-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -62,6 +66,12 @@ jobs:
with:
fetch-depth: 10

- name: Git config
if: ${{ matrix.os == 'windows-latest' }}
shell: bash
run: |
git config --system core.longpaths true

- name: Install Pnpm
run: corepack enable

Expand All @@ -78,16 +88,26 @@ jobs:
run: pnpm run test:unit

# ======== integration && e2e ========
integration-e2e-ubuntu:
runs-on: ubuntu-latest
integration-e2e:
runs-on: ${{ matrix.os }}
needs: changes
if: ${{ needs.changes.outputs.changed == 'true' }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18, 20, 22]
include:
- node-version: 18
os: windows-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Git config
if: ${{ matrix.os == 'windows-latest' }}
shell: bash
run: |
git config --system core.longpaths true

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -103,7 +123,7 @@ jobs:
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install && cd ./tests && npx playwright install
run: pnpm install && cd ./tests && pnpx playwright install chromium

- name: Integration Test (Vitest)
run: pnpm run test:integration
Expand All @@ -112,11 +132,11 @@ jobs:
run: pnpm run test:e2e

# ======== benchmark ========
benchmark-ubuntu:
benchmark:
# Only Ubuntu 20.04 and 22.04 are supported at the moment.
# See https://github.com/CodSpeedHQ/action/blob/016456b513677f9d4a1c509c7f8a38d8dd55b2b0/.github/workflows/ci.yml#L19.
runs-on: ubuntu-22.04
needs: [integration-e2e-ubuntu]
needs: [integration-e2e]
strategy:
matrix:
node-version: [20]
Expand Down Expand Up @@ -151,8 +171,8 @@ jobs:
# ======== exit ========
pr-check-required:
if: (!cancelled() && !failure())
needs: [ut-ubuntu, integration-e2e-ubuntu, benchmark-ubuntu]
needs: [ut, integration-e2e, benchmark]
runs-on: ubuntu-latest
name: Test passed or skipped (Ubuntu)
name: Test passed or skipped
steps:
- run: echo "All tests passed or skipped (Ubuntu)."
- run: echo "All tests passed or skipped."
1 change: 1 addition & 0 deletions scripts/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ picocolors
pjpeg
pluggable
pmmmwh
pnpx
postcssrc
preact
prebundle
Expand Down
Loading