Skip to content

Commit

Permalink
ci(test): simplify matrix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Nov 24, 2023
1 parent 21cc6f1 commit d445a3c
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

concurrency:
group: test-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true

env:
Expand All @@ -20,30 +20,15 @@ jobs:
setup:
strategy:
matrix:
os:
- ubuntu
- windows
- macos
cache:
- cache
- no-cache
packager:
- yarn
include:
- os: ubuntu
cache: no-cache
os: [ubuntu, windows, macos]
cache: [cache, no-cache]
packager: [bun, npm, yarn]
exclude:
# npm isn't particularly faster with a cache
- cache: cache
packager: npm
# Bun isn't supported on Windows (yet)
- os: windows
cache: no-cache
packager: npm
- os: macos
cache: no-cache
packager: npm
- os: ubuntu
cache: no-cache
packager: bun
- os: macos
cache: no-cache
packager: bun
runs-on: ${{ matrix.os }}-latest
steps:
Expand Down

0 comments on commit d445a3c

Please sign in to comment.