From 9f6754859838c9b4b194ad2c3cfe61dfce84ded4 Mon Sep 17 00:00:00 2001 From: Alexander Bias Date: Fri, 13 Oct 2023 21:33:56 +0200 Subject: [PATCH] Updated Moodle Plugin CI to latest upstream recommendations --- .github/workflows/moodle-plugin-ci.yml | 12 ++++++------ CHANGES.md | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/moodle-plugin-ci.yml b/.github/workflows/moodle-plugin-ci.yml index d5f65c3..c4725ab 100644 --- a/.github/workflows/moodle-plugin-ci.yml +++ b/.github/workflows/moodle-plugin-ci.yml @@ -15,6 +15,7 @@ jobs: ports: - 5432:5432 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 + mariadb: image: mariadb:10 env: @@ -22,7 +23,6 @@ jobs: MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_CHARACTER_SET_SERVER: "utf8mb4" MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci" - ports: - 3306:3306 options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3 @@ -30,7 +30,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['7.3', '7.4', '8.0'] + php: ['7.4', '8.0'] moodle-branch: ['MOODLE_400_STABLE'] database: [pgsql, mariadb] @@ -50,7 +50,7 @@ jobs: - name: Initialise moodle-plugin-ci run: | - composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3 + composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4 echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH sudo locale-gen en_AU.UTF-8 @@ -79,11 +79,11 @@ jobs: - name: Moodle Code Checker if: ${{ always() }} - run: moodle-plugin-ci codechecker --max-warnings 0 + run: moodle-plugin-ci phpcs --max-warnings 0 - name: Moodle PHPDoc Checker if: ${{ always() }} - run: moodle-plugin-ci phpdoc + run: moodle-plugin-ci phpdoc --max-warnings 0 - name: Validating if: ${{ always() }} @@ -107,4 +107,4 @@ jobs: - name: Behat features if: ${{ always() }} - run: moodle-plugin-ci behat --profile chrome --auto-rerun 0 + run: moodle-plugin-ci behat --profile chrome diff --git a/CHANGES.md b/CHANGES.md index 78c82de..7202412 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,10 @@ moodle-block_people Changes ------- +### Unreleased + +* 2023-10-10 - Updated Moodle Plugin CI to latest upstream recommendations + ### v4.0-r3 * 2023-04-04 - Bugfix: Link on teacher name was linking to a fixed course ID