Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk committed Dec 5, 2023
1 parent 0a5d138 commit 5a9a617
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on: [push, pull_request]

permissions:
contents: read

jobs:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.1'
- '8.2'
coverage:
- none
include:
- php: '8.3'
coverage: xdebug
steps:
- uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php }}
coverage: ${{ matrix.coverage }}
- uses: actions/checkout@v3
with:
fetch-depth: 2 # required by Scrutinizer
- run: composer install --no-progress --no-ansi --no-interaction --dev --prefer-dist
- run: php test/test.php
- if: matrix.coverage == 'xdebug'
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: '--format=php-clover test/build/clover.xml'

0 comments on commit 5a9a617

Please sign in to comment.