From 339e4e52ec6be7fcb660dba56175ca6fea725b27 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 12 Jan 2024 19:29:10 +0300 Subject: [PATCH] [#114] .forgejo: Add golanci-lint workflow Signed-off-by: Evgenii Stratonikov --- .forgejo/workflows/tests.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index 1fa9608..c0b3a1b 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -2,6 +2,23 @@ name: Tests and linters on: [pull_request] jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '1.21' + cache: true + + - name: golangci-lint + uses: https://github.com/golangci/golangci-lint-action@v3 + with: + version: latest + tests: name: Tests runs-on: ubuntu-latest