github.com/tunabay/go-bitarray@v1.3.1/.github/workflows/go-test.yml (about)

     1  name: go-test
     2  on:
     3    push:
     4      tags:
     5        - v*
     6      branches-ignore:
     7        - 'doc-*'
     8        - 'doc/*'
     9    pull_request:
    10      branches:
    11        - main
    12        - master
    13        - release
    14  jobs:
    15    go-tests:
    16      runs-on: ubuntu-latest
    17      steps:
    18        - uses: actions/setup-go@v2
    19          with:
    20            go-version: ^1.17
    21        - uses: actions/checkout@v2
    22        - name: go-test
    23          run: |
    24            go test -v -count=1 \
    25                    -covermode=count \
    26                    -coverpkg=github.com/tunabay/go-bitarray \
    27                    -coverprofile=cover.out \
    28                    ./...
    29            go tool cover -func=cover.out
    30            go tool cover -html=cover.out -o go-test-coverage.html
    31        - uses: actions/upload-artifact@v2
    32          with:
    33            path: go-test-coverage.html
    34            retention-days: 3