ci(gitea): add validation and release workflows
This commit is contained in:
27
.gitea/workflows/pr-merge-validation.yml
Normal file
27
.gitea/workflows/pr-merge-validation.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user