github.com/facebookincubator/go-belt@v0.0.0-20230703220935-39cd348f1a38/.github/workflows/go-test.yml (about)

     1  name: Unit-tests
     2  on:
     3    push:
     4      tags:
     5        - v*
     6      branches:
     7        - main
     8    pull_request:
     9  jobs:
    10    build:
    11      runs-on: ubuntu-latest
    12      steps:
    13        - uses: actions/checkout@v3
    14        - name: Set up Go
    15          uses: actions/setup-go@v3
    16          with:
    17            go-version: 1.19
    18        - name: Try build
    19          run: go build -v ./...
    20        - name: Run unit-tests
    21          run: go test -race -v ./...