forked from 0xPolygon/polygon-edge
-
Notifications
You must be signed in to change notification settings - Fork 7
33 lines (32 loc) · 884 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
name: Lint
on: # yamllint disable-line rule:truthy
workflow_call:
outputs:
workflow_output:
description: Lint output
value: ${{ jobs.golangci_lint.outputs.lint_output_failure }}
jobs:
golangci_lint:
name: Run Lint
runs-on: ubuntu-latest
outputs:
lint_output_failure: ${{ steps.lint_failure.outputs.lint_output }}
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ vars.GOLANG_VERSION }}
cache: false
- name: Lint
uses: golangci/golangci-lint-action@v6.1.1
with:
args: --timeout 10m --verbose
- name: Lint Failed
if: failure()
id: lint_failure
run: echo "lint_output=false" >> $GITHUB_OUTPUT