Skip to content

Commit

Permalink
added phpunit github action
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Oct 26, 2022
1 parent d843f71 commit 5324ba6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Static analysis

on:
push:
branches: [main]
pull_request:

jobs:

phpstan:
name: PHPStan
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
php-version: ['8.0', '8.1', '8.2']

steps:
- uses: actions/checkout@v2

- name: Setup PHP
id: setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none

- uses: "ramsey/composer-install@v2"
with:
composer-options: "--prefer-dist --no-progress --no-suggest"

- run: composer require redaxo/source

- run: composer test

0 comments on commit 5324ba6

Please sign in to comment.