Files
versitygw/.github/workflows/functional-windows.yml
Ben McClelland a753315f7b test: add windows build/test for functional tests
We have been getting a few bug reports on windows, so this is an
attempt to have some test coverage for windows.
2026-05-14 14:03:06 -07:00

39 lines
970 B
YAML

name: functional tests (windows)
permissions: {}
on: pull_request
jobs:
build:
name: RunTestsWindows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
id: go
- name: Get Dependencies
run: go mod download
- name: Build
run: |
$version = if (Test-Path VERSION) { Get-Content VERSION } else { git describe --abbrev=0 --tags HEAD }
$build = git rev-parse --short HEAD
$time = (Get-Date -Format "yyyy-MM-dd_hh:mm:sstt")
go build -ldflags "-X=main.Build=$build -X=main.BuildTime=$time -X=main.Version=$version" `
-o versitygw.exe -cover -race ./cmd/versitygw
shell: pwsh
- name: Run Tests
run: pwsh -File .\runtests.ps1
shell: pwsh
- name: Coverage Report
run: go tool covdata percent -i="$env:TEMP\covdata"
shell: pwsh