Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: Added GitHub action and tests
  • Loading branch information
mwansinck committed Dec 9, 2021
commit b1270ef768a7a0676194838ccdd48cc82a2a1eb4
28 changes: 28 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run phpunit tests

on: [push, pull_request]

jobs:
tests:
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4', '8.0', '8.1']

runs-on: 'ubuntu-latest'

steps:
- uses: actions/checkout@v2

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v2, phpunit:9.5

- name: Install Composer dependencies
run: composer install --no-progress --no-scripts -q

- name: Run Tests
run: vendor/bin/phpunit --bootstrap vendor/autoload.php tests
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
"php": "^7.4|^8.0",
"symfony/process": "^4.4|^5.3|^6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.3",
"phpunit/phpunit": "^9.5"
},
"autoload": {
"psr-4": {
"Webstack\\QPDF\\": "src/"
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.3"
}
}
Loading