Skip to content

Commit

Permalink
test: adding image finder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Romaixn committed Mar 2, 2023
1 parent 32435dc commit 8bb010f
Show file tree
Hide file tree
Showing 8 changed files with 608 additions and 520 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.1'
tools: php-cs-fixer, cs2pr

- name: Run PHP-CS-Fixer
Expand All @@ -27,8 +27,8 @@ jobs:
runs-on: ubuntu-latest
name: Psalm
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -50,4 +50,33 @@ jobs:
run: composer install --prefer-dist

- name: Run Psalm
run: vendor/bin/psalm --show-info=true --output-format=github
run: vendor/bin/psalm --show-info=true --output-format=github

phpunit:
name: PHPUnit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist

- name: Run tests
run: bin/phpunit
Loading

0 comments on commit 8bb010f

Please sign in to comment.