github.com/kazu/loncha@v0.6.3/.github/workflows/test.yaml (about)

     1  on: [push, pull_request]
     2  name: Test
     3  jobs:
     4    test:
     5      strategy:
     6        matrix:
     7          go-version: [1.18.3]
     8          os: [ubuntu-latest, macos-latest, windows-latest]
     9  
    10      runs-on: ${{ matrix.os }}
    11      steps:
    12      - name: Install Go
    13        uses: actions/setup-go@v2
    14        with:
    15          go-version: ${{ matrix.go-version }}
    16  
    17      - name: Checkout code
    18        uses: actions/checkout@v2
    19  
    20      - name: Test
    21        # avoid list_head/lista_encabezado
    22        #run: go test -race -coverprofile="coverage.txt" -covermode=atomic ./...
    23        run: go test -race -coverprofile="coverage.txt" -covermode=atomic ./
    24  
    25      - name: upload coverage
    26        uses: codecov/codecov-action@v1
    27        with:
    28          token: ${{ secrets.CODECOV_TOKEN }}