Use matrix strategy in CI

This commit is contained in:
Mieszko Grodzicki 2023-02-23 18:34:06 +01:00 committed by Predrag Gruevski
parent 9d38089c3c
commit 733726affb

View file

@ -7,24 +7,15 @@ on:
- main
jobs:
compare-dist:
test-build:
name: Test build
uses: ./.github/workflows/test-build.yml
test-action:
name: Test the action on ubuntu-latest
name: Test the action
uses: ./.github/workflows/test-action.yml
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
with:
runs-on: ubuntu-latest
test-action-windows-latest:
name: Test the action on windows-latest
uses: ./.github/workflows/test-action.yml
with:
runs-on: windows-latest
test-action-macos-latest:
name: Test the action on macos-latest
uses: ./.github/workflows/test-action.yml
with:
runs-on: macos-latest
runs-on: ${{ matrix.os }}