Skip to content

Commit

Permalink
FIx/Enhance CI
Browse files Browse the repository at this point in the history
Some CI requires specific version
Fix new Core unkonwn constant
Fix actions versions
Add Twig lint
  • Loading branch information
trasher committed Feb 10, 2024
1 parent e74a263 commit cc11997
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .composer-require-checker.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"GALETTE_IMPORTS_PATH",
"GALETTE_LOGS_PATH",
"GALETTE_MODE",
"GALETTE_DEBUG",
"GALETTE_NIGHTLY",
"GALETTE_PHOTOS_PATH",
"GALETTE_PLUGINS_PATH",
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
coverage: ${{ matrix.coverage }}

- name: Checkout Galette core
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: galette/galette
path: galette-core
fetch-depth: 1
ref: develop

- name: Checkout plugin
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: galette-core/galette/plugins/plugin-auto

Expand All @@ -49,7 +49,7 @@ jobs:
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
Expand All @@ -65,17 +65,22 @@ jobs:
cd galette-core/galette/plugins/plugin-auto
../../vendor/bin/phpcs lib/
- name: Twig CS
run: |
cd galette-core/galette/plugins/plugin-auto
../../vendor/bin/twigcs templates/default --severity error --display blocking
- name: Check missing symbols
run: |
cd galette-core/galette/plugins/plugin-auto
composer require maglnet/composer-require-checker -W
vendor/bin/composer-require-checker check --config-file=.composer-require-checker.config.json ../../composer.json
if: matrix.php-versions == '8.3'

- name: PHPStan checks
run: |
cd galette-core/galette/plugins/plugin-auto
../../vendor/bin/phpstan analyze --ansi --memory-limit=2G --no-interaction --no-progress
if: matrix.php-versions == '8.1'
- name: Headers checks
run: |
Expand Down

0 comments on commit cc11997

Please sign in to comment.