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:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,7 +8,7 @@ on:
|
|||||||
- "*"
|
- "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-tests:
|
validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -21,3 +21,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run full unit test suite
|
- name: Run full unit test suite
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|
||||||
|
- name: Run behavior suite on main pushes
|
||||||
|
if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
run: ./script/run-behavior-suite-docker.sh
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# homesick
|
# homesick
|
||||||
|
|
||||||
[](https://git.hrafn.xyz/aether/gosick/actions/workflows/push-unit-tests.yml)
|
[](https://git.hrafn.xyz/aether/gosick/actions/workflows/push-validation.yml)
|
||||||
[](https://git.hrafn.xyz/aether/gosick/actions/workflows/pr-validation.yml)
|
[](https://git.hrafn.xyz/aether/gosick/actions/workflows/pr-validation.yml)
|
||||||
[](https://git.hrafn.xyz/aether/gosick/actions/workflows/tag-build-artifacts.yml)
|
[](https://git.hrafn.xyz/aether/gosick/actions/workflows/tag-build-artifacts.yml)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user