Skip to content

Commit c49f1c7

Browse files
committed
Use nvm 0.39.7 to overcome 0.40.0 regression
1 parent 3842ad1 commit c49f1c7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/test.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ jobs:
120120
echo "CI_BUILD_DIR="$(cd ../moodle-local_ci; pwd) >> $GITHUB_ENV
121121
# PHPUnit depends on en_AU.UTF-8 locale
122122
sudo locale-gen en_AU.UTF-8
123-
# Define NVM_DIR pointing to nvm installation.
124-
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
123+
# Install nvm v0.39.7 (workaround for issue #128).
124+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
125125
126126
- name: Install moodle-plugin-ci
127127
run: moodle-plugin-ci install -vvv
@@ -133,6 +133,7 @@ jobs:
133133
MUSTACHE_IGNORE_NAMES: 'broken.mustache'
134134
MOODLE_APP: ${{ matrix.moodle-app }}
135135

136+
136137
- name: Run Integration tests
137138
env:
138139
MOODLE_BRANCH: ${{ matrix.moodle-branch }}
@@ -238,8 +239,8 @@ jobs:
238239
echo "CI_BUILD_DIR="$(cd ../moodle-local_ci; pwd) >> $GITHUB_ENV
239240
# PHPUnit depends on en_AU.UTF-8 locale
240241
sudo locale-gen en_AU.UTF-8
241-
# Define NVM_DIR pointing to nvm installation.
242-
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
242+
# Install nvm v0.39.7 (workaround for issue #128).
243+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
243244
244245
- name: Download PHAR artifact
245246
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)