Skip to content

Commit

Permalink
add node installation for self hosting action server-fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mona-shakiba committed Feb 7, 2025
1 parent 0cbb890 commit c9cc741
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/moodle-plugin-ci-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ jobs:
- name: Initialise moodle-plugin-ci
run: |
echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV
echo "NODE_VERSION=$NODE_VERSION" >> $GITHUB_ENV
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bashrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.bashrc
echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> ~/.bashrc
npm --version
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
Expand Down

0 comments on commit c9cc741

Please sign in to comment.