Skip to content

Commit

Permalink
Run CI unit tests also on darwin and windows (k0sproject#618)
Browse files Browse the repository at this point in the history
* Run unit and build tests also on darwin and windows

Signed-off-by: Kimmo Lehto <[email protected]>

* No need to run build-all on all platforms

Signed-off-by: Kimmo Lehto <[email protected]>

---------

Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke authored Jan 3, 2024
1 parent fbb5e28 commit b29b1c5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ on:
- Makefile

jobs:
gotest:
runs-on: ubuntu-20.04
unit-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -24,5 +27,16 @@ jobs:
- name: Test
run: go test -v ./...

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true

- name: Verify all binaries can be built
run: make build-all

0 comments on commit b29b1c5

Please sign in to comment.