Skip to content

Commit

Permalink
ci: use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnetop committed Nov 25, 2023
1 parent 7988122 commit 2308d5d
Showing 1 changed file with 11 additions and 35 deletions.
46 changes: 11 additions & 35 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,42 +45,18 @@ jobs:
skip-build-cache: true
skip-pkg-cache: true

tests-on-windows:
name: Run unit tests on windows
test:
name: Run unit tests
needs: golangci-lint
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- name: Run unit tests
run: make.exe test-unit

tests-on-macos:
name: Run unit tests on macos
needs: golangci-lint
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}

- name: Run unit tests
run: make test-unit

tests-on-unix:
name: Run unit tests on linux
needs: golangci-lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [
"macos-latest",
"ubuntu-latest",
"windows-latest"
]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit 2308d5d

Please sign in to comment.