From 9e9ea0b0b80d5fa357fd017c739138c27b15e43f Mon Sep 17 00:00:00 2001 From: Renaat Debleu Date: Mon, 9 Dec 2024 13:12:28 +0000 Subject: [PATCH] infection --- .github/workflows/infection.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/infection.yml b/.github/workflows/infection.yml index 644e515..fe3e7e1 100644 --- a/.github/workflows/infection.yml +++ b/.github/workflows/infection.yml @@ -7,12 +7,22 @@ jobs: name: ci runs-on: ubuntu-latest + services: + postgres: + image: postgres + env: + POSTGRES_USER: 'postgres' + POSTGRES_HOST_AUTH_METHOD: 'trust' + options: --health-cmd="pg_isready" --health-interval 10s --health-timeout 5s --health-retries 5 + ports: + - 5432:5432 + strategy: fail-fast: false matrix: - moodle-branch: ['main'] - php: ['8.3'] - database: ['mysqli'] + moodle-branch: [main] + php: [8.3] + database: [pgsql] steps: - name: checkout plugin @@ -34,10 +44,9 @@ jobs: echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH sudo locale-gen en_AU.UTF-8 - sudo systemctl start mysql.service - name: install Moodle - run: moodle-plugin-ci install --db-user=root --db-pass=root --db-host=127.0.0.1 --plugin this-plugin + run: moodle-plugin-ci install --db-host=127.0.0.1 --plugin this-plugin env: DB: ${{ matrix.database }} MOODLE_BRANCH: ${{ matrix.moodle-branch }}