-
Notifications
You must be signed in to change notification settings - Fork 19
51 lines (45 loc) · 1.04 KB
/
go-test-multiplatform.yml
File metadata and controls
51 lines (45 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# This GitHub action runs Packer go tests across
# multiple runners.
#
name: "Go Test Multi-Platform"
on:
push:
branches:
- 'main'
- 'dev'
pull_request:
permissions:
contents: read
jobs:
darwin-go-tests:
runs-on: macos-latest
name: Darwin Go tests
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: stable
- run: |
go test -race -count 1 ./... -timeout=3m -v
windows-go-tests:
runs-on: windows-latest
name: Windows Go tests
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: stable
# Running unit tests directly with `go test` due to gofmt/gofumpt issues in Windows
- run: |
go test -race -count 1 ./... -timeout=3m -v
linux-go-tests:
runs-on: ubuntu-latest
name: Linux Go tests
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: stable
- run: |
make unit-test