github.com/pdmccormick/importable-docker-buildx@v0.0.0-20240426161518-e47091289030/.github/workflows/validate.yml (about)

     1  name: validate
     2  
     3  concurrency:
     4    group: ${{ github.workflow }}-${{ github.ref }}
     5    cancel-in-progress: true
     6  
     7  on:
     8    workflow_dispatch:
     9    push:
    10      branches:
    11        - 'master'
    12        - 'v[0-9]*'
    13      tags:
    14        - 'v*'
    15    pull_request:
    16      paths-ignore:
    17        - '.github/releases.json'
    18  
    19  jobs:
    20    validate:
    21      runs-on: ubuntu-22.04
    22      strategy:
    23        fail-fast: false
    24        matrix:
    25          target:
    26            - lint
    27            - lint-gopls
    28            - validate-vendor
    29            - validate-docs
    30            - validate-generated-files
    31      steps:
    32        -
    33          name: Prepare
    34          run: |
    35            if [ "$GITHUB_REPOSITORY" = "docker/buildx" ]; then
    36              echo "GOLANGCI_LINT_MULTIPLATFORM=1" >> $GITHUB_ENV
    37            fi
    38        -
    39          name: Checkout
    40          uses: actions/checkout@v4
    41        -
    42          name: Set up Docker Buildx
    43          uses: docker/setup-buildx-action@v3
    44          with:
    45            version: latest
    46        -
    47          name: Run
    48          run: |
    49            make ${{ matrix.target }}