Skip to content

Merge pull request #8 from HiteshRepo/gh_workflow-setup #4

Merge pull request #8 from HiteshRepo/gh_workflow-setup

Merge pull request #8 from HiteshRepo/gh_workflow-setup #4

Workflow file for this run

name: lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
- name: Cache GolangCI-Lint Cache
uses: actions/cache@v3
with:
path: ~/.cache/golangci-lint
key: ${{ runner.os }}-golangci-lint-${{ hashFiles('**/*.mod', '**/*.sum') }}
restore-keys: |
${{ runner.os }}-golangci-lint-
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.60.2
args: --timeout 5m