forked from smartcontractkit/chainlink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: golangci lint cicd (smartcontractkit#15161)
- Loading branch information
Showing
2 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
name: CI lint for Golang | ||
description: Runs CI lint for Golang | ||
inputs: | ||
# general inputs | ||
name: | ||
description: Name of the lint action | ||
required: true | ||
go-directory: | ||
description: Go directory to run commands from | ||
default: "." | ||
|
@@ -25,10 +21,17 @@ inputs: | |
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Checkout repo (full) | ||
uses: actions/[email protected] | ||
# Only do a full checkout on merge_groups | ||
if: github.event_name == 'merge_group' | ||
with: | ||
# We only need a full clone on merge_group events for golangci-lint. | ||
fetch-depth: ${{ github.event_name == 'merge_group' && '0' || '1' }}" | ||
fetch-depth: 0 | ||
- name: Checkout repo | ||
uses: actions/[email protected] | ||
if: github.event_name != 'merge_group' | ||
with: | ||
fetch-depth: 1 | ||
- name: Setup Go | ||
uses: ./.github/actions/setup-go | ||
with: | ||
|
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