github.com/saintwish/kv@v1.0.4/.github/workflows/test.yml (about) 1 name: test 2 3 on: 4 push: 5 branches: 6 - master 7 8 pull_request: 9 branches: 10 - master 11 12 jobs: 13 build: 14 runs-on: ubuntu-latest 15 16 steps: 17 - name: checkout 18 uses: actions/checkout@v3 19 20 - uses: actions/setup-go@v3 21 with: 22 go-version: '^1.22' 23 24 - name: get build tools 25 run: sudo apt-get -y install build-essential 26 27 - name: test build 28 run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build 29 30 - name: test 31 run: GOFLAGS="-count=1" go test -race -covermode=atomic ./...