Skip to content

Commit c894b54

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

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
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 (temp workaround for issue #309).
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 (temp workaround for issue #309).
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

gha.dist.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
echo $(cd ci/bin; pwd) >> $GITHUB_PATH
5757
echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH
5858
sudo locale-gen en_AU.UTF-8
59-
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
59+
# Install nvm v0.39.7 (temp workaround for issue #309).
60+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
6061
6162
- name: Install moodle-plugin-ci
6263
run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1

0 commit comments

Comments
 (0)