From 8f9f59978532925a74191bffd8884c7947735b2e Mon Sep 17 00:00:00 2001 From: Jordan Partridge Date: Sun, 14 Dec 2025 00:54:47 -0700 Subject: [PATCH] chore: replace CI workflow with Sentinel Gate - Add gate.yml with synapse-sentinel/gate action - Enable auto-merge on certification - 100% coverage threshold (matches existing requirement) - Update README badge to Sentinel Certified - Remove redundant ci.yml (gate handles tests + coverage + syntax) --- .github/workflows/ci.yml | 62 -------------------------------------- .github/workflows/gate.yml | 24 +++++++++++++++ README.md | 1 + 3 files changed, 25 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/gate.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index d360b41..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: CI - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - tests: - runs-on: ubuntu-latest - - strategy: - fail-fast: true - matrix: - php: [8.2, 8.3] - - name: PHP ${{ matrix.php }} - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip - coverage: none - - - name: Install dependencies - run: composer install --prefer-dist --no-interaction --no-progress - - - name: Check code style - run: vendor/bin/pint --test - - - name: Run static analysis - run: vendor/bin/phpstan analyse - - - name: Run tests - run: vendor/bin/pest - - coverage: - runs-on: ubuntu-latest - name: Code Coverage - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: 8.3 - extensions: dom, curl, libxml, mbstring, zip - coverage: pcov - - - name: Install dependencies - run: composer install --prefer-dist --no-interaction --no-progress - - - name: Run tests with coverage - run: vendor/bin/pest --coverage --min=100 diff --git a/.github/workflows/gate.yml b/.github/workflows/gate.yml new file mode 100644 index 0000000..86f6549 --- /dev/null +++ b/.github/workflows/gate.yml @@ -0,0 +1,24 @@ +name: Sentinel Gate + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + gate: + name: Sentinel Gate + runs-on: ubuntu-latest + permissions: + contents: write + checks: write + steps: + - uses: actions/checkout@v4 + - uses: synapse-sentinel/gate@main + with: + check: certify + coverage-threshold: 100 + auto-merge: true + merge-method: squash + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index d731cd3..d8c5f13 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Stop context-switching between PRs. Start automating approvals, merges, and bulk Approve, merge, request changes, and manage pull requests at scale with expressive PHP code. Built for teams shipping multiple releases per day. +[![Sentinel Certified](https://img.shields.io/github/actions/workflow/status/conduit-ui/pr/gate.yml?label=Sentinel%20Certified&style=flat-square)](https://github.com/conduit-ui/pr/actions/workflows/gate.yml) [![Latest Version](https://img.shields.io/packagist/v/conduit-ui/pr.svg?style=flat-square)](https://packagist.org/packages/conduit-ui/pr) [![MIT License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) [![Total Downloads](https://img.shields.io/packagist/dt/conduit-ui/pr.svg?style=flat-square)](https://packagist.org/packages/conduit-ui/pr)