From 280e2249026893bec3e373359af9ab233c79aa8c Mon Sep 17 00:00:00 2001 From: MARCO <23193188+M4RC02U1F4A4@users.noreply.github.com> Date: Mon, 29 Apr 2024 00:59:05 +0200 Subject: [PATCH] ci: go lint (#76) Co-authored-by: Francesco Aliprandi --- .github/workflows/firewall-lint.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/firewall-lint.yml diff --git a/.github/workflows/firewall-lint.yml b/.github/workflows/firewall-lint.yml new file mode 100644 index 0000000..be07ee2 --- /dev/null +++ b/.github/workflows/firewall-lint.yml @@ -0,0 +1,29 @@ +name: firewall-lint + +on: + pull_request: + paths: + - firewall/**.go + - firewall/go.mod + - firewall/go.sum + +jobs: + lint: + name: lint + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup go + uses: actions/setup-go@v5 + with: + go-version: '1.21.4' + + - name: Lint firewall + uses: golangci/golangci-lint-action@v5 + with: + version: v1.57 + working-directory: firewall + skip-cache: true + skip-save-cache: true