...

Text file src/go.uber.org/atomic/.github/workflows/go.yml

Documentation: go.uber.org/atomic/.github/workflows

     1name: Go
     2
     3on:
     4  push:
     5    branches: ['*']
     6    tags: ['v*']
     7  pull_request:
     8    branches: ['*']
     9
    10permissions:
    11  contents: read
    12
    13jobs:
    14
    15  build:
    16    runs-on: ubuntu-latest
    17    strategy:
    18      matrix:
    19        go: ["1.17.x", "1.18.x", "1.19.x"]
    20        include:
    21        - go: 1.19.x
    22          latest: true
    23
    24    steps:
    25    - name: Setup Go
    26      uses: actions/setup-go@v2
    27      with:
    28        go-version: ${{ matrix.go }}
    29
    30    - name: Checkout code
    31      uses: actions/checkout@v2
    32
    33    - name: Load cached dependencies
    34      uses: actions/cache@v1
    35      with:
    36        path: ~/go/pkg/mod
    37        key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
    38        restore-keys: |
    39          ${{ runner.os }}-go-
    40
    41    - name: Lint
    42      if: matrix.latest
    43      run: make lint
    44
    45    - name: Test
    46      run: make cover
    47
    48    - name: Upload coverage to codecov.io
    49      uses: codecov/codecov-action@v1

View as plain text