fix: use slash-separated lock paths on Windows (#344)

This commit is contained in:
snowy_smile
2026-07-25 07:15:27 +02:00
committed by GitHub
parent 44e5e02dd3
commit 390fe21ed9
5 changed files with 136 additions and 29 deletions
+12 -3
View File
@@ -10,12 +10,21 @@ on:
jobs:
test:
name: test
runs-on: ubuntu-latest
name: test (${{ matrix.os }})
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version: "1.26.x"
- name: Run test with coverage
- name: Run test with race detector and coverage
if: runner.os != 'Windows'
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Run test with coverage
if: runner.os == 'Windows'
run: go test "-coverprofile=coverage.txt" -covermode=atomic ./...