ci(gitea): unify push and merged-pr validation

This commit is contained in:
Micheal Wilkinson
2026-03-20 09:50:00 +00:00
parent aa66695665
commit 0034a6f4e2
3 changed files with 7 additions and 30 deletions

View File

@@ -1,27 +0,0 @@
name: Pull Request Merge Validation
on:
pull_request_target:
types:
- closed
jobs:
validate-merged-pr:
if: ${{ github.event.pull_request.merged == true }}
runs-on: ubuntu-latest
steps:
- name: Checkout merged commit
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run full unit test suite
run: go test ./...
- name: Run behavior suite
run: ./script/run-behavior-suite-docker.sh

View File

@@ -1,4 +1,4 @@
name: Push Unit Tests
name: Push Validation
on:
push:
@@ -8,7 +8,7 @@ on:
- "*"
jobs:
unit-tests:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -21,3 +21,7 @@ jobs:
- name: Run full unit test suite
run: go test ./...
- name: Run behavior suite on main pushes
if: ${{ github.ref == 'refs/heads/main' }}
run: ./script/run-behavior-suite-docker.sh