From af2d537da564c3046f3e8655ad86766d8eb4377d Mon Sep 17 00:00:00 2001 From: eryue0220 Date: Sat, 28 Mar 2026 22:17:46 +0800 Subject: [PATCH 1/2] feat: update ci --- .github/workflows/ci.yml | 58 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 416d6b96a..a6bd0bc2f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,15 @@ concurrency: jobs: test: - name: Test - runs-on: ubuntu-latest + name: Test (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest steps: - uses: actions/checkout@v6 with: @@ -34,16 +41,60 @@ jobs: run: cargo test - name: Format + if: ${{ matrix.os == 'ubuntu-latest' }} run: cargo fmt --all -- --check - name: Conformance + if: ${{ matrix.os == 'ubuntu-latest' }} run: | cargo run -p oxc_angular_conformance git diff --exit-code + napi-smoke: + name: NAPI Smoke (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + steps: + - uses: actions/checkout@v6 + with: + submodules: recursive + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust + uses: Swatinem/rust-cache@v2 + + - name: Install pnpm + uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 + + - name: Install Node.js + uses: actions/setup-node@v6 + with: + node-version: 24 + cache: pnpm + + - name: Install dependencies + run: pnpm install + + - name: Build + run: | + pnpm build-dev + pnpm --filter ./napi/angular-compiler build:ts + + - name: Test + run: pnpm test + napi: - name: NAPI Build + name: NAPI Build (Ubuntu E2E) runs-on: ubuntu-latest + needs: napi-smoke steps: - uses: actions/checkout@v6 with: @@ -77,7 +128,6 @@ jobs: - name: Test run: | - pnpm test pnpm --filter ./napi/angular-compiler exec playwright install --with-deps pnpm test:e2e - name: Compare tests From 83ec92c25dc52cb63ad3d02a70f81489c65144ef Mon Sep 17 00:00:00 2001 From: eryue0220 Date: Sun, 29 Mar 2026 15:13:50 +0800 Subject: [PATCH 2/2] fix ci --- .github/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6bd0bc2f..76580adae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,10 @@ jobs: - macos-latest - windows-latest steps: + - name: Enable Git long paths (Windows) + if: ${{ matrix.os == 'windows-latest' }} + run: git config --global core.longpaths true + - uses: actions/checkout@v6 with: submodules: recursive @@ -61,6 +65,10 @@ jobs: - macos-latest - windows-latest steps: + - name: Enable Git long paths (Windows) + if: ${{ matrix.os == 'windows-latest' }} + run: git config --global core.longpaths true + - uses: actions/checkout@v6 with: submodules: recursive