From 3d3c74fdb29fca07a4844bd0649ac6826ebd598a Mon Sep 17 00:00:00 2001 From: s1d3sw1ped_bot <12+s1d3sw1ped_bot@git.s1d3sw1ped.com> Date: Mon, 31 Aug 2026 15:05:28 -0500 Subject: [PATCH] Run CI on push to main as well as pull requests. Direct pushes to main currently skip tests because the workflow only listened for pull_request. Scratchbox already tests every push; do the same here. --- .gitea/workflows/test-pr.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test-pr.yaml b/.gitea/workflows/test-pr.yaml index 770fef5..3463a7f 100644 --- a/.gitea/workflows/test-pr.yaml +++ b/.gitea/workflows/test-pr.yaml @@ -1,6 +1,9 @@ -name: PR Check +name: CI on: - - pull_request + pull_request: + push: + branches: + - main jobs: check-and-test: @@ -21,4 +24,4 @@ jobs: - run: go install golang.org/x/vuln/cmd/govulncheck@latest - run: govulncheck ./... - run: go test -race -v -shuffle=on -coverprofile=coverage.out -timeout=5m ./... - - run: go tool cover -func=coverage.out | tail -10 # basic coverage report \ No newline at end of file + - run: go tool cover -func=coverage.out | tail -10 # basic coverage report