This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
Migrate k8s autodiscovery pipeline #1035
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: golangci-lint | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
golangci: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
name: lint | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch Go version from .go-version | |
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.51.2 | |
args: --timeout=30m --whole-files | |
# Optional: show only new issues if it's a pull request. The default value is `false`. | |
only-new-issues: true |