From 36cc78d1020a5e34186bdd63fddef7567a2c40c8 Mon Sep 17 00:00:00 2001 From: ccoVeille <3875889+ccoVeille@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:34:31 +0200 Subject: [PATCH] ci: play with GHA --- .github/workflows/ci.yml | 6 +++--- 01-defaults/.golangci.yml | 1 + 02-basic/README.md | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c841b55..7af8e1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ --- name: CI on: - push: + pull_request: jobs: ci-lint: runs-on: ubuntu-latest @@ -13,8 +13,8 @@ jobs: uses: actions/checkout@v4.1.7 - name: yamllint - # uses: ibiqlik/action-yamllint@v3 - uses: reviewdog/action-yamllint@v1 + uses: ibiqlik/action-yamllint@v3 + # uses: reviewdog/action-yamllint@v1 # failed to detect errors... - name: vale-action uses: errata-ai/vale-action@v2.1.0 diff --git a/01-defaults/.golangci.yml b/01-defaults/.golangci.yml index 4ac56e3..e7540db 100644 --- a/01-defaults/.golangci.yml +++ b/01-defaults/.golangci.yml @@ -26,3 +26,4 @@ linters: # It's a set of rules from staticcheck. See https://staticcheck.io/ - staticcheck + dds:dds diff --git a/02-basic/README.md b/02-basic/README.md index 0eda0de..f49ac9f 100644 --- a/02-basic/README.md +++ b/02-basic/README.md @@ -12,6 +12,8 @@ License: MIT golangci-lint configuration file made by @ccoVeille Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/02-basics +forgoten + ## Enabled linters ### errcheck