...

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

Documentation: github.com/mattn/go-colorable/.github/workflows

     1name: test
     2on:
     3  push:
     4    branches:
     5      - master
     6  pull_request:
     7    branches:
     8      - master
     9
    10jobs:
    11  test:
    12    runs-on: ${{ matrix.os }}
    13    strategy:
    14      fail-fast: false
    15      matrix:
    16        os:
    17          - ubuntu-latest
    18          - macos-latest
    19          - windows-latest
    20        go:
    21          - '1.17'
    22          - '1.16'
    23          - '1.15'
    24          - '1.14'
    25          - '1.13'
    26    steps:
    27      - uses: actions/setup-go@v2
    28        with:
    29          go-version: ${{ matrix.go }}
    30      - uses: actions/checkout@v2
    31      - name: test
    32        shell: bash
    33        run: |
    34          ./go.test.sh
    35      - name: upload coverage report
    36        uses: codecov/codecov-action@v2
    37        with:
    38          env_vars: OS,GO
    39        env:
    40          OS: ${{ matrix.os }}
    41          GO: ${{ matrix.go }}

View as plain text