github.com/nakabonne/golangci-lint@v1.26.1/.github/workflows/pr.yml (about)

     1  ---
     2  name: PR build
     3  on:
     4    push:
     5      tags:
     6        - v*
     7      branches:
     8        - master
     9    pull_request:
    10  jobs:
    11    tests-on-windows:
    12      runs-on: windows-latest
    13      strategy:
    14        matrix:
    15          golang:
    16            - 1.13
    17            - 1.14
    18      steps:
    19        - uses: actions/checkout@v2
    20        - name: Install Go
    21          uses: actions/setup-go@v2
    22          with:
    23            go-version: ${{ matrix.golang }}
    24        - name: Run tests on Windows
    25          run: make.exe test
    26          continue-on-error: true
    27    tests-on-unix:
    28      runs-on: ${{ matrix.os }}
    29      strategy:
    30        matrix:
    31          golang:
    32            - 1.13
    33            - 1.14
    34          os:
    35            - ubuntu-latest
    36            - macos-latest
    37      steps:
    38        - uses: actions/checkout@v2
    39        - name: Install Go
    40          uses: actions/setup-go@v2
    41          with:
    42            go-version: ${{ matrix.golang }}
    43        - uses: actions/cache@v1
    44          with:
    45            path: ~/go/pkg/mod
    46            key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
    47            restore-keys: |
    48              ${{ runner.os }}-go-${{ matrix.golang }}-
    49        - name: Run tests on Unix-like operating systems
    50          run: make test
    51    check_generated:
    52      runs-on: ubuntu-latest
    53      steps:
    54        - uses: actions/checkout@v2
    55        - name: Unshallow
    56          run: git fetch --prune --unshallow
    57        - name: Install Go
    58          uses: actions/setup-go@v2
    59          with:
    60            go-version: 1.14
    61        - name: Check if README.md is up to date
    62          run: make check_generated