Skip to content

Commit 956af81

Browse files
committed
feat: added os-versions input to go-test
1 parent f0389eb commit 956af81

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/go-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ on:
2525
required: false
2626
type: string
2727
default: '"macos-latest"'
28+
os-versions:
29+
required: false
30+
type: string
31+
default: '["ubuntu", "windows", "macos"]'
2832
secrets:
2933
CODECOV_TOKEN:
3034
required: false
@@ -40,7 +44,7 @@ jobs:
4044
strategy:
4145
fail-fast: false
4246
matrix:
43-
os: [ "ubuntu", "windows", "macos" ]
47+
os: ${{ fromJSON(inputs.os-versions) }}
4448
go: ${{ fromJSON(inputs.go-versions) }}
4549
env:
4650
GOTESTFLAGS: -cover -coverprofile=module-coverage.txt -coverpkg=./...

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
- `env` input support to `go-test` and `go-check` workflows
1010
- `CHECKOUT_TOKEN` secret support to `go-test` and `go-check` workflows
1111
- custom `runner` configuration to most workflows
12+
- `os-versions` input support to `go-test` workflow
1213

1314
## [1.0.34] - 2025-09-16
1415
### Fixed

0 commit comments

Comments
 (0)