From 8a150b9dd287f28f673ba8c92ed2108808f05573 Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Wed, 7 Jun 2023 15:23:54 +0200 Subject: [PATCH] [WIP] Include staticcheck to review possible fixes Signed-off-by: Sergio Arroutbi --- .github/workflows/staticcheck.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/staticcheck.yaml diff --git a/.github/workflows/staticcheck.yaml b/.github/workflows/staticcheck.yaml new file mode 100644 index 0000000000..91af78ed72 --- /dev/null +++ b/.github/workflows/staticcheck.yaml @@ -0,0 +1,22 @@ +--- +name: "Staticcheck" +on: + push: + branches: + - main + paths: + - '**.go' + pull_request: + paths: + - '**.go' +jobs: + staticcheck: + name: "Staticcheck" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 1 + - uses: dominikh/staticcheck-action@v1.2.0 + with: + version: "2022.1.1"