...

Text file src/github.com/google/go-containerregistry/.github/workflows/style.yaml

Documentation: github.com/google/go-containerregistry/.github/workflows

     1name: Code Style
     2
     3on:
     4  pull_request:
     5    branches: ['main']
     6
     7jobs:
     8
     9  goimports:
    10    name: check goimports
    11    runs-on: ubuntu-latest
    12    steps:
    13      - uses: actions/setup-go@v4
    14        with:
    15          go-version: 1.19
    16          check-latest: true
    17      - uses: actions/checkout@v3
    18      - uses: chainguard-dev/actions/goimports@5e21cb47971231c078a677dfe89a348371cb880c # main
    19
    20  lint:
    21    name: Lint
    22    runs-on: ubuntu-latest
    23
    24    steps:
    25      - uses: actions/checkout@v3
    26      - uses: actions/setup-go@v4
    27        with:
    28          go-version: 1.19
    29          check-latest: true
    30
    31      - uses: golangci/golangci-lint-action@v3.4.0
    32        with:
    33          version: v1.51.2
    34
    35      - uses: reviewdog/action-misspell@v1
    36        if: ${{ always() }}
    37        with:
    38          github_token: ${{ secrets.github_token }}
    39          fail_on_error: true
    40          locale: "US"
    41          exclude: ./vendor/*
    42
    43      - uses: chainguard-dev/actions/trailing-space@5e21cb47971231c078a677dfe89a348371cb880c # main
    44        if: ${{ always() }}
    45
    46      - uses: chainguard-dev/actions/eof-newline@5e21cb47971231c078a677dfe89a348371cb880c # main
    47        if: ${{ always() }}
    48
    49      - uses: get-woke/woke-action-reviewdog@v0
    50        if: ${{ always() }}
    51        with:
    52          github-token: ${{ secrets.github_token }}
    53          reporter: github-pr-check
    54          level: error
    55          fail-on-error: true

View as plain text