Skip to content

add ci

add ci #26

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test:
name: go-test
runs-on: windows-latest
env:
CGO_ENABLED: 0
steps:
- name: disable-auto-crlf
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: clone-repo
uses: actions/checkout@v4
- name: setup-go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: go-vet-fmt-test # fmt check see Test_Gofmt
run : |
go vet
go test -v -timeout 120s -tags "-race" ./...