8.4 alpha 2 #306
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "7.2" | |
- "7.3" | |
- "7.4" | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
- "8.4" | |
steps: | |
- name: Dump matrix context | |
env: | |
MATRIX_CONTEXT: ${{ toJSON(matrix) }} | |
run: echo "$MATRIX_CONTEXT" | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build test image | |
if: matrix.php-version != '8.4' | |
run: docker build -t php-base --build-arg PHP_VERSION=$PHP_VERSION . | |
env: | |
PHP_VERSION: ${{ matrix.php-version }} | |
- name: Build test image | |
if: matrix.php-version == '8.4' | |
run: docker build -t php-base --build-arg PHP_VERSION=$PHP_VERSION . | |
env: | |
PHP_VERSION: '8.4.0alpha2' | |
- name: Output modules | |
run: docker run php-base php -m | |
- name: Check requirements | |
if: matrix.php-version != '8.4' | |
run: docker run -w "/test" -v $(pwd):/test php-base composer install |