...

Text file src/github.com/docker/distribution/.github/workflows/ci.yml

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

     1name: CI
     2
     3on:
     4  push:
     5  pull_request:
     6
     7jobs:
     8
     9  build:
    10    runs-on: ubuntu-latest
    11    env:
    12      BUILDTAGS: "include_oss,include_gcs"
    13      CGO_ENABLED: 1
    14      GO111MODULE: "auto"
    15      GOPATH: ${{ github.workspace }}
    16      GOOS: linux
    17      COMMIT_RANGE: ${{ github.event_name == 'pull_request' && format('{0}..{1}',github.event.pull_request.base.sha, github.event.pull_request.head.sha) || github.sha }}
    18
    19    steps:
    20    - uses: actions/checkout@v2
    21      with:
    22        path: src/github.com/docker/distribution
    23        fetch-depth: 50
    24
    25    - name: Set up Go
    26      uses: actions/setup-go@v2
    27      with:
    28        go-version: 1.20.8
    29
    30    - name: Dependencies
    31      run: |
    32          sudo apt-get -q update
    33          sudo -E apt-get -yq --no-install-suggests --no-install-recommends install python2-minimal
    34          cd /tmp && go install github.com/vbatts/git-validation@latest
    35
    36    - name: Build
    37      working-directory: ./src/github.com/docker/distribution
    38      run: |
    39        DCO_VERBOSITY=-q script/validate/dco
    40        GO111MODULE=on script/setup/install-dev-tools
    41        script/validate/vendor
    42        go build .
    43        make check
    44        make build
    45        make binaries
    46        if [ "$GOOS" = "linux" ]; then make coverage ; fi
    47
    48    - uses: codecov/codecov-action@v1
    49      with:
    50        directory: ./src/github.com/docker/distribution

View as plain text