Skip to content

Commit

Permalink
dev: Fix the CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
marienfressinaud committed Dec 10, 2024
1 parent 82f389f commit 42d40c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ jobs:
name: PHP ${{ matrix.php-versions }} CI on ${{ matrix.operating-system }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
submodules: true
node-version: 20
cache: 'npm'

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -40,22 +43,15 @@ jobs:
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

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

- name: Cache node dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- name: Install dependencies
run: make install

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ jobs:
name: PHP ${{ matrix.php-versions }} CI on ${{ matrix.operating-system }}

steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -56,17 +54,17 @@ jobs:
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

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

- name: Install dependencies
run: composer install
run: make install INSTALLER=composer

- name: Setup the application
run: make db-setup
Expand Down

0 comments on commit 42d40c0

Please sign in to comment.