mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
name: Code Style
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ['main']
|
|
|
|
jobs:
|
|
|
|
gofmt:
|
|
name: check gofmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.x
|
|
- uses: actions/checkout@v3
|
|
- uses: chainguard-dev/actions/gofmt@84c993eaf02da1c325854fb272a4df9184bd80fc # main
|
|
with:
|
|
args: -s
|
|
|
|
goimports:
|
|
name: check goimports
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.x
|
|
- uses: actions/checkout@v3
|
|
- uses: chainguard-dev/actions/goimports@84c993eaf02da1c325854fb272a4df9184bd80fc # main
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.x
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
|
|
- uses: chainguard-dev/actions/trailing-space@84c993eaf02da1c325854fb272a4df9184bd80fc # main
|
|
if: ${{ always() }}
|
|
|
|
- uses: chainguard-dev/actions/eof-newline@84c993eaf02da1c325854fb272a4df9184bd80fc # main
|
|
if: ${{ always() }}
|
|
|
|
- uses: reviewdog/action-misspell@v1
|
|
if: ${{ always() }}
|
|
with:
|
|
github_token: ${{ secrets.github_token }}
|
|
fail_on_error: true
|
|
locale: "US"
|
|
|
|
- uses: get-woke/woke-action-reviewdog@v0
|
|
if: ${{ always() }}
|
|
with:
|
|
github-token: ${{ secrets.github_token }}
|
|
reporter: github-pr-check
|
|
level: error
|
|
fail-on-error: true
|