Skip to content

Commit

Permalink
[CI] Run tests across multiple OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Pewtro committed Jul 20, 2024
1 parent 9bbbbe2 commit 1701794
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ jobs:
# Test against multiple node versions
# Last LTS, current LTS, current, and next LTS (if not same as current)
node: [18.x, 20.x, 21.x, 22.x]
os: [ubuntu-latest, macos-latest, windows-latest]
name: Release
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand All @@ -46,7 +47,7 @@ jobs:
run: pnpm test:ci

# Only run the release step if the push is to the main or next branch
- if: ${{ matrix.node == env.release_node && github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next') }}
- if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == env.release_node && github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next') }}
name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
Expand Down

0 comments on commit 1701794

Please sign in to comment.