github.com/maypok86/otter@v1.2.1/.github/workflows/test.yml (about)

     1  name: Test
     2  
     3  on: [push]
     4  
     5  jobs:
     6    test:
     7      strategy:
     8        matrix:
     9          go-version: [ 1.19.x, 1.20.x, 1.21.x, 1.22.x ]
    10  
    11      runs-on: ubuntu-latest
    12  
    13      steps:
    14        - name: Set up Go 1.x
    15          uses: actions/setup-go@v5
    16          with:
    17            go-version: ${{ matrix.go-version }}
    18          id: go
    19  
    20        - name: Check out code into the Go module directory
    21          uses: actions/checkout@v4
    22  
    23        - name: Unit tests
    24          run: make test.unit
    25  
    26        - name: Upload coverage to Codecov
    27          uses: codecov/codecov-action@v4
    28          with:
    29            fail_ci_if_error: true
    30            files: ./coverage.txt
    31            token: ${{ secrets.CODECOV_TOKEN }}
    32            verbose: true