...

Text file src/github.com/distribution/reference/.github/workflows/test.yml

Documentation: github.com/distribution/reference/.github/workflows

     1name: test
     2
     3on:
     4  push:
     5    branches: [ "main" ]
     6  pull_request:
     7    branches: [ "main" ]
     8
     9permissions:
    10  contents: read
    11
    12env:
    13  TESTFLAGS: -v
    14  BUILDFLAGS: -v
    15
    16jobs:
    17  build:
    18    strategy:
    19      matrix:
    20        go-version: [1.20.x, 1.21.x]
    21        os: [ubuntu-latest, windows-latest, macos-latest]
    22    runs-on: ${{ matrix.os }}
    23    timeout-minutes: 10
    24    steps:
    25    - uses: actions/checkout@v3
    26    
    27    - name: Set up Go
    28      uses: actions/setup-go@v4
    29      with:
    30        go-version: ${{ matrix.go-version }}
    31    
    32    - name: Build
    33      run: |
    34        make build
    35
    36    - name: lint
    37      uses: golangci/golangci-lint-action@v3
    38      with:
    39        version: v1.53
    40        args: --print-resources-usage --timeout=10m --verbose
    41
    42    - name: Test
    43      run: |
    44        make coverage
    45
    46    - name: Codecov
    47      uses: codecov/codecov-action@v3
    48      with:
    49        directory: ./

View as plain text