diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..5bda83f --- /dev/null +++ b/.github/workflows/lint.yml @@ -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/staticcheck-action@v1.3.0 + with: + version: "2022.1.3" + + - name: gofmt + uses: Jerome1337/gofmt-action@v1.0.5 + with: + gofmt-flags: "-l -d" + diff --git a/go.mod b/go.mod index a04e0ab..2b598aa 100644 --- a/go.mod +++ b/go.mod @@ -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