From c98c513e374c8ba49e0551b1676b128a9a33c1dc Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Mon, 2 Dec 2024 19:35:45 -0800 Subject: [PATCH] Add lint workflow --- .github/workflows/lint.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..e1f9f9e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,45 @@ +name: Lint + +on: + push: + branches: + - master + pull_request: + branches: + - master + +defaults: + run: + shell: bash + +concurrency: + group: ${{ github.ref_name }}-lint + cancel-in-progress: true + +jobs: + lint: + name: Go Lint + runs-on: ubuntu-24.04 + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Golang Environment + uses: actions/setup-go@v5 + with: + go-version: stable + + - name: Lint Go + uses: golangci/golangci-lint-action@v6 + + actionlint: + name: Actionlint + runs-on: ubuntu-24.04 + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Lint Actions + uses: reviewdog/action-actionlint@v1 + with: + actionlint_flags: -shellcheck ""