Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 7, 2024
1 parent 34ba265 commit d9f4b4b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Checks

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 1

- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: composer:v2
ini-file: development

- run: composer install

- name: Run php-cs-fixer
if: always()
run: php vendor/bin/php-cs-fixer --dry-run --diff fix

- name: Run phpstan
if: always()
run: php vendor/bin/phpstan

0 comments on commit d9f4b4b

Please sign in to comment.