Skip to content

Commit

Permalink
ci: use moodle-plugin-ci v4 when php >= 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchamp committed May 19, 2023
1 parent 1ad2cc8 commit 65ad045
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65ad045

Please sign in to comment.