github.com/zerosnake0/jzon@v0.0.9-0.20230801092939-1b135cb83f7f/.github/workflows/test.yml (about)

     1  name: Test
     2  on:
     3    push:
     4      branches:
     5        - master
     6        - dev
     7    pull_request:
     8      branches:
     9        - master
    10  #  schedule:
    11  #    - cron: '0 12 * * 1'
    12  jobs:
    13    test:
    14      strategy:
    15        matrix:
    16          go-version: [ 1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x ]
    17          platform: [ ubuntu-16.04, ubuntu-18.04, macos-latest ]
    18      runs-on: ${{ matrix.platform }}
    19  
    20      steps:
    21        - name: Set up Go
    22          uses: actions/setup-go@v1
    23          with:
    24            go-version: ${{ matrix.go-version }}
    25  
    26        - name: Check out code into the Go module directory
    27          uses: actions/checkout@v1
    28  
    29        - name: Test
    30          run: go test -tags debug -race -coverprofile=coverage.txt -covermode=atomic ./...
    31  
    32        - name: CodeCov
    33          run: bash <(curl -s https://codecov.io/bash)