Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
borkweb committed May 23, 2024
1 parent b9a6651 commit cfce544
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Static Analysis
on:
push:
jobs:
phpstsan:
name: phpstan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl
coverage: none
- uses: ramsey/composer-install@v2
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"
- name: Run PHPStan static analysis
run: composer test:analysis
27 changes: 27 additions & 0 deletions .github/workflows/tests-php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Tests
on:
push:
jobs:
tests:
name: tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl
coverage: none
- uses: ramsey/composer-install@v2
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"
- name: Setup git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "<>"
- name: Migrate PHPUnit configuration
run: vendor/bin/phpunit --migrate-configuration
- name: Run tests
run: php vendor/bin/phpunit --bootstrap=tests/bootstrap.php --no-coverage

0 comments on commit cfce544

Please sign in to comment.