Skip to content

Commit

Permalink
Enable nvm (#136)
Browse files Browse the repository at this point in the history
* Enable nvm

Signed-off-by: Prabhu Subramanian <[email protected]>

---------

Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu authored Apr 26, 2024
1 parent ed925a4 commit e33c91d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/nodejstests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "8.3"
tools: composer:v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install sbt
run: brew install sbt
if: runner.os == 'macOS'
- run: |
sbt stage assembly createDistribution
cd wrapper/nodejs
Expand Down
5 changes: 4 additions & 1 deletion ci/Dockerfile.sle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ ENV ANDROID_HOME=/opt/android-sdk-linux \
PHP_PARSER_BIN=/opt/vendor/bin/php-parse \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING="utf-8" \
COMPOSER_ALLOW_SUPERUSER=1
COMPOSER_ALLOW_SUPERUSER=1 \
NVM_DIR="/root/.nvm"

ENV PATH=/opt/bin:/opt/vendor/bin:${PATH}:/usr/local/bin/:/root/.local/bin:${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/tools:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:

Expand All @@ -37,6 +38,7 @@ RUN set -e; \
esac; \
zypper --non-interactive install -l --no-recommends php8 php8-cli php8-curl php8-zip php8-bcmath php8-pear php8-mbstring php8-devel \
&& python3 --version \
&& source /root/.nvm/nvm.sh \
&& node --version \
&& python3 -m pip install --upgrade pip poetry atom-tools \
&& mkdir -p ${ANDROID_HOME}/cmdline-tools \
Expand All @@ -60,6 +62,7 @@ ENV LC_ALL=en_US.UTF-8 \
COPY ./target/atom.zip .
COPY ./wrapper .
RUN unzip -q atom.zip \
&& source /root/.nvm/nvm.sh \
&& composer update --no-progress --prefer-dist --ignore-platform-reqs \
&& cd /opt/nodejs && npm install --only=production && cd /opt \
&& npm install -g /opt/nodejs \
Expand Down

0 comments on commit e33c91d

Please sign in to comment.