Skip to content

Add docker pulls badge #334

Add docker pulls badge

Add docker pulls badge #334

Workflow file for this run

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.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.0beta3'
- 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