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