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)