From 65ad0455e7d8268667b94fcb0feca1fe9e7fad9f Mon Sep 17 00:00:00 2001 From: Jonathan Champ Date: Fri, 19 May 2023 12:07:15 -0400 Subject: [PATCH] ci: use moodle-plugin-ci v4 when php >= 7.4 --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a768323d..ebecf08e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,8 +65,17 @@ jobs: coverage: none - name: Initialise moodle-plugin-ci + if: ${{ matrix.php >= '7.4' }} + run: | + composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4 + + - name: Initialise moodle-plugin-ci v3 + if: ${{ matrix.php < '7.4' }} run: | composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^3 + + - name: Set up environment + run: | echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH sudo locale-gen en_AU.UTF-8