Skip to content

Update min supported mongo extension badge #121

Update min supported mongo extension badge

Update min supported mongo extension badge #121

Workflow file for this run

name: CI
on:
pull_request: ~
push:
branches:
- master
jobs:
tests:
name: Tests (PHP ${{ matrix.php }}, ext-mongodb ${{ matrix.mongo-ext }}, MongoDB ${{ matrix.mongo-img }}, Symfony ${{ matrix.symfony }})
runs-on: ubuntu-latest
services:
mongo:
image: mongo:${{ matrix.mongo-img }}
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootPass
# options: >-
# --health-cmd '/etc/init.d/mongodb status || exit 1'
# --health-interval 5s
# --health-timeout 3s
# --health-retries 5
strategy:
matrix:
include:
- php: 7.4
mongo-ext: 1.6.0
mongo-img: 4.2
- php: 7.4
mongo-ext: 1.9.0
mongo-img: 4.4
- php: 8.0
mongo-ext: 1.9.0
mongo-img: 4.4
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mongodb-${{ matrix.mongo-ext }}
- name: Allow unstable dependencies
run: composer config minimum-stability dev
if: matrix.symfony == 'dev-master'
- name: Restrict Symfony version
run: composer require "symfony/symfony:${{ matrix.symfony }}" --no-update
if: matrix.symfony
- name: Install dependencies
uses: ramsey/composer-install@v2
- name: Await a bit for Mongo to spin up...
run: sleep 10
- name: Run tests
run: bin/phpunit --coverage-clover=build/coverage-report.xml
- name: Upload code coverage
uses: codecov/codecov-action@v3
with:
file: build/coverage-report.xml