ci(gitea): unify push and merged-pr validation
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user