Skip to content

Commit

Permalink
πŸ’š(project) fix moodle-plugin-ci installation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SergioSim committed Aug 14, 2024
1 parent a28556b commit 6a1902c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,18 @@ jobs:
php-version: ${{ matrix.php }}
ini-values: max_input_vars=5000
coverage: xdebug

- name: Initialise moodle-plugin-ci
if: ${{ !cancelled() }}
run: |
composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4
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
Expand Down

0 comments on commit 6a1902c

Please sign in to comment.