Skip to content

Commit

Permalink
Merge pull request #36 from dvjsharma/feat/issue-33
Browse files Browse the repository at this point in the history
feat(ci): Github Workflow for Golang static checks and linting

Reviewed-by: [email protected], [email protected]
Tested-by: GitHub-Actions
  • Loading branch information
GMishx authored Jan 12, 2024
2 parents 20a4708 + 0e8228d commit a0f7261
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: 2024 Divij Sharma <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

name: Static Checks and Linting

concurrency:
group: lint-${{ github.head_ref }}
cancel-in-progress: true

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
check-latest: true
cache: true

- name: lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55

0 comments on commit a0f7261

Please sign in to comment.