mirror of
https://github.com/ii64/sonic.git
synced 2026-06-23 18:06:44 +08:00
feat: add Windows CI
Added Windows CI for GitHub Actions Go version: 1.15.x, 1.16.x, 1.17.x, 1.18.x
This commit is contained in:
parent
5086cb21fe
commit
c30d7f4f4d
1 changed files with 26 additions and 0 deletions
26
.github/workflows/push-check-go-windows.yml
vendored
Normal file
26
.github/workflows/push-check-go-windows.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
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
|
||||||
Loading…
Reference in a new issue