Skip to content

Commit

Permalink
create lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam-Nawara committed Nov 7, 2023
1 parent f511ae7 commit f75af05
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint

on:
push:
workflow_dispatch:

jobs:
Lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Install GO
uses: actions/setup-go@v3
with:
go-version: 1.21

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout 3m --verbose

- name: staticcheck
uses: dominikh/[email protected]
with:
version: "2022.1.3"

- name: gofmt
uses: Jerome1337/[email protected]
with:
gofmt-flags: "-l -d"

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/codescalers/statusbot

go 1.21.3
go 1.21

require (
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
Expand Down

0 comments on commit f75af05

Please sign in to comment.