This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
Fix Node Selector Resource Plugin #45
Workflow file for this run
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: Linting | |
on: | |
pull_request: | |
jobs: | |
golangci: | |
name: Lint golang files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
persist-credentials: false | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
only-new-issues: true | |
version: v1.55.1 | |
gomodtidy: | |
name: Enforce go.mod tidiness | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.pull_request.head.sha }}" | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
persist-credentials: false | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Execute go mod tidy and check the outcome | |
working-directory: ./ | |
run: | | |
go mod tidy | |
exit_code=$(git diff --exit-code) | |
exit ${exit_code} | |
markdownlint: | |
name: Lint markdown files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.pull_request.head.sha }}" | |
repository: ${{github.event.pull_request.head.repo.full_name}} | |
persist-credentials: false | |
- name: Lint markdown files | |
uses: avto-dev/markdown-lint@v1 | |
with: | |
config: '.markdownlint.yml' | |
args: '**/*.md' |