-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
2,060 additions
and
1,485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,13 @@ name: CI | |
on: push | ||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.operating-system }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
operating-system: ['ubuntu-22.04'] | ||
php-versions: ['8.1', '8.2'] | ||
php: ["8.3"] | ||
|
||
name: Run CI build | ||
|
||
services: | ||
postgresql: | ||
image: postgres | ||
|
@@ -18,20 +19,23 @@ jobs: | |
- 5555:5432 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
tools: php-cs-fixer | ||
php-version: ${{ matrix.php }} | ||
extensions: imagick | ||
|
||
- name: PHP version info | ||
run: | | ||
php -v | ||
php -i | ||
php -m | ||
- name: PHP version | ||
run: php -v | ||
|
||
- name: PHP info | ||
run: php -i | ||
|
||
- name: PHP modules | ||
run: php -m | ||
|
||
- name: Create tables | ||
run: psql postgresql://imbo_test:[email protected]:5555/imbo_test -f ./setup/000-imbo.sql | ||
|
@@ -45,12 +49,12 @@ jobs: | |
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache-dir.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
${{ runner.os }}-php-${{ matrix.php }}-composer- | ||
- name: Install dependencies | ||
run: composer install | ||
|
@@ -59,7 +63,7 @@ jobs: | |
run: vendor/bin/phpunit | ||
|
||
- name: Run static code analysis | ||
run: vendor/bin/psalm | ||
run: vendor/bin/phpstan analyse | ||
|
||
- name: Check coding standard | ||
run: PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --dry-run --diff | ||
run: PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.