summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Simko <radeksimko@users.noreply.github.com>2024-02-26 07:44:54 +0000
committerGitHub <noreply@github.com>2024-02-26 07:44:54 +0000
commitbd58136c299abe49a4382cee15b1478b44a78b07 (patch)
tree46c109649008f434ab69f2cbf5a53ceb72d696d9
parent63380ba29035340b26bf491429f87e340a3757d0 (diff)
parent97cf603f3cadfdcd5b472e55e2576ad22e971b17 (diff)
Merge pull request #660 from hashicorp/ci-test-on-macos
Run unit tests on macOS
-rw-r--r--.github/workflows/checks.yml (renamed from .github/workflows/push.yml)8
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/push.yml b/.github/workflows/checks.yml
index a16f7b6..6aaa038 100644
--- a/.github/workflows/push.yml
+++ b/.github/workflows/checks.yml
@@ -1,4 +1,4 @@
-name: Per-commit Checks
+name: Checks
on:
push:
@@ -14,6 +14,8 @@ jobs:
target: linux_amd64
- runs-on: windows-latest
target: windows_amd64
+ - runs-on: macos-latest
+ target: darwin_amd64
fail-fast: false
name: "Unit Tests on ${{ matrix.target }}"
@@ -32,7 +34,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
- go-version: 1.18
+ go-version-file: go.mod
- name: Go test
run: |
go test ./... -race
@@ -47,7 +49,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
- go-version: 1.18
+ go-version-file: go.mod
- name: "Check vet"
run: |
go vet ./...