github.com/goccy/go-reflect@v1.2.1-0.20220925055700-4646ad15ec8a/.github/workflows/go.yml (about)

     1  name: Go
     2  on: [push]
     3  jobs:
     4    build:
     5      name: Test
     6      strategy:
     7        matrix:
     8          os: [ubuntu-latest, windows-latest, macos-latest]
     9          go-version:
    10            - '1.14.x'
    11            - '1.15.x'
    12            - '1.16.x'
    13      runs-on: ${{ matrix.os }}
    14      steps:
    15      - name: Set up Go ${{ matrix.go-version }}
    16        uses: actions/setup-go@v1
    17        with:
    18          go-version: ${{ matrix.go-version }}
    19        id: go
    20  
    21      - name: Check out code into the Go module directory
    22        uses: actions/checkout@v2
    23  
    24      - name: Test
    25        run: go test -v -coverprofile="coverage.out" ./
    26  
    27      - name: Upload coverage
    28        uses: codecov/codecov-action@v1
    29        with:
    30          file: ./coverage.out
    31          fail_ci_if_error: true