From 5466ff134787bab70c42f7ce301adab3a7a18fda Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Mon, 16 Dec 2024 21:06:27 +0300 Subject: [PATCH] ci: add format workflow --- .forgejo/workflows/format.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .forgejo/workflows/format.yaml diff --git a/.forgejo/workflows/format.yaml b/.forgejo/workflows/format.yaml new file mode 100644 index 0000000..40f7fbb --- /dev/null +++ b/.forgejo/workflows/format.yaml @@ -0,0 +1,25 @@ +name: Format and Lint + +on: + push: + branches: + - "main" + pull_request: + types: [opened, synchronize, reopened] + +jobs: + format-check: + runs-on: docker + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.20" + + - name: Run Format Check + run: | + make format