From dbfbe20f6eb74a58e8183d9c6d351e774c683d16 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 13 Aug 2024 10:39:01 +0200 Subject: [PATCH] MOBILE-4616 github: Temporary fix to make behat work in GHA --- .github/workflows/acceptance.yml | 5 ++++- .github/workflows/coverage.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 35b9a772f..c985d05ee 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -157,7 +157,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 Behat Snapshots plugin run: moodle-plugin-ci add-plugin moodlemobile/moodle-local_behatsnapshots diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index df813191c..e5fe0cbd5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -193,7 +193,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 Behat Snapshots plugin run: moodle-plugin-ci add-plugin moodlemobile/moodle-local_behatsnapshots