feat: add nuxt to eco-ci #349
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
get-runner-labels: | |
name: Get Runner Labels | |
uses: ./.github/workflows/get-runner-labels.yml | |
prepare-binding: | |
name: Prepare Rspack Binding | |
needs: get-runner-labels | |
runs-on: ${{ fromJSON(needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS) }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/prepare-rspack-binding | |
ci: | |
needs: [get-runner-labels, prepare-binding] | |
strategy: | |
matrix: | |
include: | |
- suite: modernjs | |
os: ubuntu-latest | |
- suite: _selftest | |
os: ubuntu-latest | |
# - suite: nx | |
# os: ubuntu-latest | |
- suite: rspress | |
os: ubuntu-latest | |
- suite: rsbuild | |
os: ubuntu-latest | |
- suite: examples | |
os: ubuntu-latest | |
- suite: rslib | |
os: ubuntu-latest | |
- suite: devserver | |
os: ubuntu-latest | |
- suite: nuxt | |
os: ubuntu-latest | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.suite }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/build-rspack | |
- name: Install | |
run: pnpm install --frozen-lockfile --prefer-offline | |
- name: Format | |
if: matrix.suite == '_selftest' | |
run: pnpm format | |
- name: Lint | |
if: matrix.suite == '_selftest' | |
run: pnpm lint | |
- name: Expose GitHub Runtime | |
uses: crazy-max/ghaction-github-runtime@v3 | |
- run: >- | |
pnpm tsx ecosystem-ci.ts | |
run-suites | |
${{ matrix.suite }} |