From a4f31cc281efd4a578b9950d70149a4ab464095b Mon Sep 17 00:00:00 2001 From: Eric Chlebek Date: Fri, 23 Feb 2024 16:02:44 -0600 Subject: [PATCH] Add staticcheck github action --- .github/workflows/static-check.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/static-check.yml diff --git a/.github/workflows/static-check.yml b/.github/workflows/static-check.yml new file mode 100644 index 00000000..795f9ef2 --- /dev/null +++ b/.github/workflows/static-check.yml @@ -0,0 +1,26 @@ +name: static-check + +on: + pull_request: + push: + tags: + - 'v*' + branches: + - main + +jobs: + staticcheck: + name: staticcheck (project) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + fetch-depth: 1 + - id: install_go + uses: WillAbides/setup-go-faster@v1.7.0 + with: + go-version: "1.20.x" + - uses: dominikh/staticcheck-action@v1.2.0 + with: + install-go: false + version: "2023.1.7"