Skip to content

Commit 6a1902c

Browse files
committed
💚(project) fix moodle-plugin-ci installation
Our GitHub workflow fails to install moodle-plugin-ci due to an nvm update (v0.39.7 -> v0.40.0) in Ubuntu 22.04. As a workaround, we decided to manually install nvm v0.39.7 in the "Initialise moodle-plugin-ci" step.
1 parent a28556b commit 6a1902c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,18 @@ jobs:
5353
php-version: ${{ matrix.php }}
5454
ini-values: max_input_vars=5000
5555
coverage: xdebug
56-
56+
5757
- name: Initialise moodle-plugin-ci
5858
if: ${{ !cancelled() }}
5959
run: |
6060
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
6161
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
6262
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
6363
sudo locale-gen en_AU.UTF-8
64-
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
65-
64+
# Install nvm v0.39.7 as a temporary workaround for issue:
65+
# https://github.com/moodlehq/moodle-plugin-ci/issues/309
66+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
67+
6668
- name: Install moodle-plugin-ci
6769
if: ${{ !cancelled() }}
6870
run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1

0 commit comments

Comments
 (0)