mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 10:28:55 +00:00
[ticket/17176] Adjust composer cache usage
PHPBB3-17176
This commit is contained in:
parent
295fcc771b
commit
c7071450ec
1 changed files with 5 additions and 13 deletions
18
.github/workflows/tests.yml
vendored
18
.github/workflows/tests.yml
vendored
|
@ -42,19 +42,16 @@ jobs:
|
||||||
|
|
||||||
- name: Get Composer Cache Directory
|
- name: Get Composer Cache Directory
|
||||||
id: composer-cache
|
id: composer-cache
|
||||||
env:
|
|
||||||
PHP_VERSION: ${{ matrix.php }}
|
|
||||||
run: |
|
run: |
|
||||||
cd phpBB
|
cd phpBB
|
||||||
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
echo "version=${PHP_VERSION%.*}" >> $GITHUB_OUTPUT
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Cache Composer dependencies
|
- name: Cache Composer dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
|
key: composer-${{ matrix.php }}-${{ hashFiles('phpBB/composer.lock') }}
|
||||||
|
|
||||||
- name: Setup environment for phpBB
|
- name: Setup environment for phpBB
|
||||||
env:
|
env:
|
||||||
|
@ -194,14 +191,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd phpBB
|
cd phpBB
|
||||||
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
echo "version=${PHP_VERSION%.*}" >> $GITHUB_OUTPUT
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Cache Composer dependencies
|
- name: Cache Composer dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
|
key: composer-${{ matrix.php }}-${{ hashFiles('phpBB/composer.lock') }}
|
||||||
|
|
||||||
- name: Setup environment for phpBB
|
- name: Setup environment for phpBB
|
||||||
env:
|
env:
|
||||||
|
@ -331,14 +327,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd phpBB
|
cd phpBB
|
||||||
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
echo "version=${PHP_VERSION%.*}" >> $GITHUB_OUTPUT
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Cache Composer dependencies
|
- name: Cache Composer dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
|
key: composer-${{ matrix.php }}-${{ hashFiles('phpBB/composer.lock') }}
|
||||||
|
|
||||||
- name: Setup environment for phpBB
|
- name: Setup environment for phpBB
|
||||||
env:
|
env:
|
||||||
|
@ -437,14 +432,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd phpBB
|
cd phpBB
|
||||||
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||||
echo "version=${PHP_VERSION%.*}" >> $GITHUB_OUTPUT
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Cache Composer dependencies
|
- name: Cache Composer dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
|
key: composer-${{ matrix.php }}-${{ hashFiles('phpBB/composer.lock') }}
|
||||||
|
|
||||||
- name: Setup environment for phpBB
|
- name: Setup environment for phpBB
|
||||||
env:
|
env:
|
||||||
|
@ -515,15 +509,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd phpBB
|
cd phpBB
|
||||||
echo "dir=$(composer config cache-files-dir)" >> $env:GITHUB_OUTPUT
|
echo "dir=$(composer config cache-files-dir)" >> $env:GITHUB_OUTPUT
|
||||||
$major_version="${{ matrix.php }}".substring(0,1)
|
|
||||||
echo "version=$major_version" >> $env:GITHUB_OUTPUT
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Cache Composer dependencies
|
- name: Cache Composer dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.composer-cache.outputs.dir }}
|
path: ${{ steps.composer-cache.outputs.dir }}
|
||||||
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
|
key: composer-${{ matrix.php }}-${{ hashFiles('phpBB/composer.lock') }}
|
||||||
|
|
||||||
- name: Setup environment for phpBB
|
- name: Setup environment for phpBB
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Reference in a new issue