...

Text file src/github.com/mattn/goveralls/.github/workflows/main.yml

Documentation: github.com/mattn/goveralls/.github/workflows

     1name: CI
     2
     3on: [push, pull_request]
     4
     5jobs:
     6  test:
     7    strategy:
     8      fail-fast: false
     9      matrix:
    10        os:
    11          - ubuntu-latest
    12          - macos-latest
    13          - windows-latest
    14        go:
    15          - '1.7'  # minimum version that macos-latest supports
    16          - '1.10' # last version that doesn't support go modules
    17          - '1.11' # first version that supports go modules
    18          - '1.x'  # latest version
    19    runs-on: ${{ matrix.os }}
    20
    21    steps:
    22      - name: Set up Go ${{ matrix.go }}
    23        uses: actions/setup-go@v1
    24        with:
    25          go-version: ${{ matrix.go }}
    26      - run: go version
    27      - name: Set up GOPATH
    28        run: |
    29          echo "::set-env name=GOPATH::${{ github.workspace }}"
    30          echo "::add-path::${{ github.workspace }}/bin"
    31
    32      - uses: actions/checkout@v2
    33        with:
    34          path: src/github.com/mattn/goveralls
    35      - name: build
    36        run: |
    37          go get ./...
    38          go install .
    39        working-directory: src/github.com/mattn/goveralls
    40      - name: test
    41        run: goveralls -service=github -parallel -flagname="Unit-${{ matrix.os }}-Go-${{ matrix.go }}"
    42        working-directory: src/github.com/mattn/goveralls
    43        env:
    44          COVERALLS_TOKEN: ${{ github.token }}
    45
    46  finish:
    47    needs: test
    48    runs-on: ubuntu-latest
    49    steps:
    50      - name: Set up Go
    51        uses: actions/setup-go@v1
    52        with:
    53          go-version: '1.x'
    54      - uses: actions/checkout@v2
    55      - name: finish
    56        run: |
    57          go run github.com/mattn/goveralls -parallel-finish
    58        env:
    59          COVERALLS_TOKEN: ${{ github.token }}

View as plain text