Skip to content

chore(ci): fix tests on windows #3

chore(ci): fix tests on windows

chore(ci): fix tests on windows #3

Workflow file for this run

name: Go Matrix
on:
push:
branches:
- main
- master
pull_request:
jobs:
cross:
name: Go
strategy:
matrix:
go-version: [ stable, oldstable ]
os: [ubuntu-latest, macos-latest, windows-latest]
env:
CGO_ENABLED: 1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Check and get dependencies
run: |
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
- name: Test
run: go test -v -race ./...