Skip to content

Commit

Permalink
add os matrix for all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Sep 15, 2024
1 parent 540a8f8 commit b8a9431
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/ci.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,54 @@ jobs:

build:
uses: ./.github/workflows/ci.reusable.build.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: "20"
os: "ubuntu-latest"
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}

test-coverage:
needs: build
uses: ./.github/workflows/ci.reusable.test-coverage.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: "20"
os: "ubuntu-latest"
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}

lint:
needs: build
uses: ./.github/workflows/ci.reusable.lint.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: "20"
os: "ubuntu-latest"
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}

misc:
needs: build
uses: ./.github/workflows/ci.reusable.misc.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: "20"
os: "ubuntu-latest"
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}

test-e2e:
needs: build
uses: ./.github/workflows/ci.reusable.test-e2e.yml
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
node-version: ["20"]
with:
node-version: "20"
os: "ubuntu-latest"
node-version: ${{ matrix.node-version }}
os: ${{ matrix.os }}

0 comments on commit b8a9431

Please sign in to comment.