github.com/prebid/prebid-server/v2@v2.18.0/.github/workflows/validate.yml (about)

     1  name: Validate
     2  
     3  on:
     4    push:
     5      branches: [master]
     6    pull_request:
     7      branches: [master]
     8  
     9  jobs:
    10    validate:
    11      strategy:
    12        matrix:
    13          go-version: [1.19.x, 1.20.x]
    14          os: [ubuntu-20.04]
    15      runs-on: ${{ matrix.os }}
    16      
    17      steps:
    18      - name: Install Go
    19        uses: actions/setup-go@v5
    20        with:
    21          go-version: ${{ matrix.go-version }}
    22  
    23      - name: Checkout Code
    24        uses: actions/checkout@v4
    25        with:
    26          # Resolves to empty string for push events and falls back to HEAD.
    27          ref: ${{ github.event.pull_request.head.sha }}
    28  
    29      - name: Validate
    30        run: |
    31          ./validate.sh --nofmt --cov --race 10
    32        env:
    33          GO111MODULE: "on"