Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed May 29, 2024
1 parent 53dee00 commit dd994ae
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build

on: [ push, pull_request ]

jobs:
tests:
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "8.2"
- "8.3"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"

- name: "Run phpcs"
if: ${{ matrix.php-version == '8.3' }}
run: "vendor/bin/phpcs -n -s --report=checkstyle | cs2pr"

- name: "Run PHPUnit"
run: "vendor/bin/phpunit"

0 comments on commit dd994ae

Please sign in to comment.