From 6b65e5efc5107528b7826806fc9f8c1135da0ed1 Mon Sep 17 00:00:00 2001 From: bdular Date: Thu, 1 Aug 2024 23:21:04 +0200 Subject: [PATCH] Added Lint action to improve code quality --- .github/workflows/lint.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 00000000..66062796 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,32 @@ +name: "Lint" + +on: + push: + paths-ignore: + - '*.md' + + pull_request: + types: [ opened, synchronize ] + paths-ignore: + - '*.md' + branches: + - master + +jobs: + lint: + name: "Run linter" + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.16" + + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: latest \ No newline at end of file