Skip to content

Commit

Permalink
Merge pull request #1 from storyprotocol/feat/add_reusable_lint_workflow
Browse files Browse the repository at this point in the history
[feat] add go linting workflow
  • Loading branch information
AndyBoWu authored Apr 3, 2024
2 parents 71526c3 + ad38162 commit d03108d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint-go-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Reusable Lint Workflow

on:
workflow_call:
inputs:
go-version:
description: 'Go version'
required: true
default: '1.22'
type: string

jobs:
lint:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Set up Go
uses: actions/setup-go@0c52d54 # v5.0.0
with:
go-version: ${{ inputs.go-version }}

- name: Run Linter
run: |
echo "Running golangci-lint"
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run

0 comments on commit d03108d

Please sign in to comment.