mirror of
https://github.com/rancher/k3k.git
synced 2026-04-05 10:16:56 +00:00
42 lines
927 B
YAML
42 lines
927 B
YAML
name: Validate
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
|
|
with:
|
|
go-version-file: go.mod
|
|
cache: true
|
|
|
|
- name: Install Pandoc
|
|
run: sudo apt-get install pandoc
|
|
|
|
- name: Run linters
|
|
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
|
|
with:
|
|
version: v2.11.4
|
|
args: -v
|
|
only-new-issues: true
|
|
skip-cache: false
|
|
|
|
- name: Run formatters
|
|
run: golangci-lint -v fmt ./...
|
|
|
|
- name: Validate
|
|
run: make validate
|