mirror of
https://github.com/ii64/sonic.git
synced 2026-06-22 09:26:44 +08:00
26 lines
No EOL
638 B
YAML
26 lines
No EOL
638 B
YAML
name: Push Check Go Windows
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.15.x, 1.16.x, 1.17.x, 1.18.x]
|
|
os: [windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Unit Test
|
|
run: go test -v -gcflags -d=checkptr=0 -race -covermode atomic -coverprofile coverage.out ./...
|
|
env:
|
|
GOMAXPROCS: 4
|
|
|
|
- name: Generic Test
|
|
run: go test -v -gcflags -d=checkptr=0 -race -covermode atomic ./generic_test |