diff --git a/.gitea/workflows/badges.yml b/.gitea/workflows/badges.yml index c4ae4b0..da91fe6 100644 --- a/.gitea/workflows/badges.yml +++ b/.gitea/workflows/badges.yml @@ -17,7 +17,7 @@ jobs: with: go-version: 1.25 - - name: Run Unit tests + - name: Run Unit tests with coverage run: | go test -covermode atomic -coverprofile=coverage.out ./... grep -v -E "(main|_gen).go" coverage.out > coverage.filtered.out diff --git a/.gitea/workflows/gen_code.yml b/.gitea/workflows/gen_code.yml index ac0e573..0d71388 100644 --- a/.gitea/workflows/gen_code.yml +++ b/.gitea/workflows/gen_code.yml @@ -1,8 +1,8 @@ name: Generate check on: - push: pull_request: + types: [opened, reopened, synchronize] jobs: check-changes: @@ -24,7 +24,7 @@ jobs: echo "has_gen_changes=false" >> $GITHUB_OUTPUT fi - check-generate: + verify-generate: runs-on: ubuntu-latest needs: check-changes if: needs.check-changes.outputs.has_gen_changes == 'true' diff --git a/.gitea/workflows/quality.yml b/.gitea/workflows/quality.yml index 8c40736..8282af0 100644 --- a/.gitea/workflows/quality.yml +++ b/.gitea/workflows/quality.yml @@ -24,7 +24,7 @@ jobs: echo "has_go_changes=false" >> $GITHUB_OUTPUT fi - tests: + run-tests: runs-on: ubuntu-latest needs: check-changes if: needs.check-changes.outputs.has_go_changes == 'true'