Skip to content

Commit

Permalink
WIP: Merge-Gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoretti committed Sep 26, 2024
1 parent 67bb4c8 commit 7a31a21
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
ci-job:
uses: ./.github/workflows/checks.yml

merge-gate:
needs: [ ci-job ]
uses: ./.github/workflows/merge-gate.yml

metrics:
needs: [ ci-job ]
uses: ./.github/workflows/report.yml
34 changes: 34 additions & 0 deletions .github/workflows/merge-gate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Merge-Gate

on:
workflow_call:
secrets:
ALTERNATIVE_GITHUB_TOKEN:
required: false

jobs:

ci-gate:
uses: ./.github/workflows/checks.yml

# This is an example of a saas-gate e.g. slow tests
saas-gate:
name: Version Check
runs-on: ubuntu-latest
environment: manual-trigger
steps:
- name: Slow Tests
run: echo "Approved (Note: This is a dummy)"


approved:

allow-merge:
name: Allow Merge
runs-on: ubuntu-latest
needs: [ ci-gate, saas-gate ]

steps:
- name: Allow Merge
run: echo "Merged Approved"

0 comments on commit 7a31a21

Please sign in to comment.