Bump actions/checkout from 3 to 4 #612
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
- pull_request | |
- push | |
jobs: | |
super-linter: | |
name: Run Super-Linter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run Super-Linter | |
uses: github/[email protected] | |
env: | |
FILTER_REGEX_EXCLUDE: .*docs/.* | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_GO: false # Go linting is broken for now, see: https://github.com/github/super-linter/issues/143 | |
VALIDATE_JSCPD: false # TODO(dfurman): consider configuring this linter | |
golangci-lint: | |
name: Run golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.43 | |
check-docs: | |
name: Check if generated documentation is up-to-date | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
id: go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.17 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check if generated documentation is up-to-date | |
run: make check-docs | |
check-go-mod: | |
name: Check Go module consistency | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
id: go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.17 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check Go module consistency | |
run: make check-go-mod |