mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 04:56:12 +01:00

[BUGFIX] Use the PHP version from the matrix in the CI (#48)

For GitHub actions, an explicit step is required to use a
specific PHP version. If this is not done, a default version
will be used (which makes the builds unpredictable).
This commit is contained in:
Oliver Klee 2020-05-22 11:38:45 +02:00 committed by GitHub
parent 0ad663e9c7
commit b8cf63d358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View file

@ -21,6 +21,11 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Run PHP lint - name: Run PHP lint
run: composer ci:php:lint run: composer ci:php:lint
@ -29,10 +34,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 7.3
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: "Cache dependencies installed with composer" - name: "Cache dependencies installed with composer"
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
@ -52,10 +67,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 7.3
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: "Cache dependencies installed with composer" - name: "Cache dependencies installed with composer"
uses: actions/cache@v1 uses: actions/cache@v1
with: with:
@ -92,6 +117,11 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: "Cache dependencies installed with composer" - name: "Cache dependencies installed with composer"
uses: actions/cache@v1 uses: actions/cache@v1
with: with:

View file

@ -48,6 +48,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- Drop the dependency of `roave/security-advisories` - Drop the dependency of `roave/security-advisories`
### Fixed ### Fixed
- Use the PHP version from the matrix in the CI (#48)
- Re-add the static TypoScript registration (#41) - Re-add the static TypoScript registration (#41)
- Keep the global namespace clean in `ext_localconf.php` (#40) - Keep the global namespace clean in `ext_localconf.php` (#40)
- Update the badge URLs in the `README` (#29, #22) - Update the badge URLs in the `README` (#29, #22)