mirror of
https://github.com/rancher/k3k.git
synced 2026-08-18 20:07:06 +00:00
Co-authored-by: renovate-rancher[bot] <119870437+renovate-rancher[bot]@users.noreply.github.com>
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # 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@ba0d7d2ec06a0ea1cb5fa41b2e4a3ab91d21278a # v9.3.0
|
|
with:
|
|
version: v2.12.2
|
|
args: -v
|
|
only-new-issues: true
|
|
skip-cache: false
|
|
|
|
- name: Run formatters
|
|
run: golangci-lint -v fmt ./...
|
|
|
|
- name: Validate
|
|
run: make validate
|