github.com/Songmu/gocredits@v0.3.1-0.20231111084238-af961788d757/.github/workflows/test.yaml (about)

     1  name: test
     2  on:
     3    push:
     4      branches:
     5      - "**"
     6  jobs:
     7    test:
     8      runs-on: ${{ matrix.os }}
     9      strategy:
    10        fail-fast: false
    11        matrix:
    12          os:
    13          - ubuntu-latest
    14          - macOS-latest
    15          - windows-latest
    16      steps:
    17      - name: checkout
    18        uses: actions/checkout@v3
    19      - name: setup go
    20        uses: actions/setup-go@v3
    21        with:
    22          go-version-file: go.mod
    23      - name: test
    24        run: go test -coverprofile coverage.out -covermode atomic ./...
    25        env:
    26          GITHUB_TOKEN: ${{ secrets.github_token }}
    27      - name: Send coverage
    28        uses: codecov/codecov-action@v1