Skip to content

Commit

Permalink
Add bin
Browse files Browse the repository at this point in the history
  • Loading branch information
eddturtle committed Dec 13, 2023
1 parent d5ce074 commit 410a17d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Install qpdf
run: |
cd /tmp
sudo wget http://security.ubuntu.com/ubuntu/pool/main/q/qpdf/libqpdf-dev_9.1.1-1ubuntu0.1_amd64.deb
sudo apt install -y -q ./libqpdf-dev_9.1.1-1ubuntu0.1_amd64.deb
qpdf --version
- uses: php-actions/composer@v6 # or alternative dependency management
- uses: php-actions/phpunit@v3
10 changes: 5 additions & 5 deletions tests/PdfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ class PdfTest extends TestCase
{
private function getCmdLocation()
{
if (getenv('GITHUB_ACTIONS') || PHP_OS === 'Linux') {
// Use location binary to run against
return __DIR__ . '/bin/qpdf';
} else {
// if (getenv('GITHUB_ACTIONS') || PHP_OS === 'Linux') {
// // Use location binary to run against
// return __DIR__ . '/bin/qpdf';
// } else {
// Default: we expect it installed (and in PATH)
return 'qpdf';
}
// }
}

public function testGetVersion()
Expand Down

0 comments on commit 410a17d

Please sign in to comment.