github.com/puzpuzpuz/xsync/v3@v3.1.1-0.20240225193106-cbe4ec1e954f/.github/workflows/coverage.yml (about)

     1  name: report-coverage
     2  on: [push]
     3  
     4  jobs:
     5    test:
     6      runs-on: ubuntu-latest
     7      strategy:
     8        matrix:
     9          go-version: [1.21.x]
    10      name: Build with Go ${{ matrix.go-version }}
    11      steps:
    12        - uses: actions/checkout@v3
    13  
    14        - name: Install Go
    15          uses: actions/setup-go@v3
    16          with:
    17            go-version: ${{ matrix.go-version }}
    18  
    19        - name: Run coverage
    20          run: go test -race -coverprofile=coverage.out -covermode=atomic
    21  
    22        - name: Publish to Codecov
    23          uses: codecov/codecov-action@v3
    24          with:
    25            files: coverage.out