...

Text file src/github.com/go-test/deep/.github/workflows/go.yml

Documentation: github.com/go-test/deep/.github/workflows

     1# This workflow will build a golang project
     2# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
     3
     4name: Go
     5
     6on:
     7  push:
     8    branches: [ "master" ]
     9  pull_request:
    10    branches: [ "master" ]
    11
    12jobs:
    13  test:
    14    runs-on: ubuntu-latest
    15    strategy:
    16      fail-fast: false
    17      matrix:
    18        go:
    19          - '1.19'
    20          - '1.18'
    21          - '1.17'
    22    steps:
    23    - uses: actions/checkout@v3
    24
    25    - name: Set up Go
    26      uses: actions/setup-go@v3
    27      with:
    28        go-version: ${{ matrix.go }}
    29
    30    - name: Build
    31      run: go build
    32
    33    - name: Test
    34      run: go test -v -coverprofile=profile.cov
    35
    36    - name: coveralls.io
    37      uses: shogo82148/actions-goveralls@v1
    38      with:
    39        path-to-profile: profile.cov
    40        flag-name: Go-${{ matrix.go }}
    41        parallel: true
    42  
    43  finish:
    44    needs: test
    45    runs-on: ubuntu-latest
    46    steps:
    47      - uses: shogo82148/actions-goveralls@v1
    48        with:
    49          parallel-finished: true

View as plain text