github.com/enetx/g@v1.0.80/.github/workflows/go.yml (about)

     1  name: Go
     2  
     3  on: [ push, pull_request ]
     4  jobs:
     5  
     6    build:
     7      name: Build
     8      runs-on: ubuntu-latest
     9      steps:
    10      - uses: actions/checkout@v4
    11      - uses: actions/setup-go@v5
    12        with:
    13          go-version: 'stable'
    14          cache: true
    15      - name: Get dependencies
    16        run: go mod download
    17      - name: Test
    18        env:  # Adding environment variables
    19          GOEXPERIMENT: "rangefunc"
    20        run: go test -race -v -coverprofile=profile.cov ./tests -coverpkg=./...
    21      - uses: shogo82148/actions-goveralls@v1
    22        with:
    23          path-to-profile: profile.cov