From 6a1902c54292d985ec91d23c74112b860daa338b Mon Sep 17 00:00:00 2001 From: SergioSim Date: Mon, 12 Aug 2024 11:44:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A(project)=20fix=20moodle-plugin-ci?= =?UTF-8?q?=20installation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0619da..d623662 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: php-version: ${{ matrix.php }} ini-values: max_input_vars=5000 coverage: xdebug - + - name: Initialise moodle-plugin-ci if: ${{ !cancelled() }} run: | @@ -61,8 +61,10 @@ jobs: echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH sudo locale-gen en_AU.UTF-8 - echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV - + # Install nvm v0.39.7 as a temporary workaround for issue: + # https://github.com/moodlehq/moodle-plugin-ci/issues/309 + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash + - name: Install moodle-plugin-ci if: ${{ !cancelled() }} run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1