mirror of
https://github.com/versity/versitygw.git
synced 2026-07-02 16:54:25 +00:00
04bb314817
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
39 lines
970 B
YAML
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@v7
|
|
|
|
- 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
|