mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 09:06:58 +02:00
43 lines
979 B
YAML
43 lines
979 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
checks: write
|
|
|
|
jobs:
|
|
|
|
build:
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
checks: write # to create a new check based on the results (shogo82148/actions-goveralls)
|
|
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Lint go code
|
|
uses: golangci/golangci-lint-action@v6
|
|
with:
|
|
args: --timeout=30m
|
|
version: v1.60
|
|
|
|
# Run Spectral
|
|
- name: Lint OpenAPI spec
|
|
uses: stoplightio/spectral-action@2ad0b9302e32a77c1caccf474a9b2191a8060d83 # v0.8.11
|
|
with:
|
|
file_glob: 'api/*.yaml'
|