Skip to content

Commit

Permalink
Install node.js before running actions/checkout.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Mar 16, 2024
1 parent 60d857f commit 9778a0d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ronin-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,21 @@ jobs:

termux:
runs-on: ubuntu-latest
container: termux/termux-docker:latest
container:
image: termux/termux-docker:latest
name: "ronin-install.sh on Termux"
steps:
- uses: actions/checkout@v4
- name: Fix /github/home/.npmrc
run: chown -R 1000:1000 "/github/home/.npm"
- name: Install dependencies
run: |
pkg update -y && \
pkg upgrade -y -o Dpkg::Options::="--force-confnew" && \
pkg install -y git -o Dpkg::Options::="--force-confnew" && \
git clone --depth 1 https://github.com/kward/shunit2.git
run: /entrypoint.sh /bin/sh -c "apt-get update -qq -y && apt-get install -qq -y nodejs && pkg install -y git -o Dpkg::Options::='--force-confnew' && git clone --depth 1 https://github.com/kward/shunit2.git"
- uses: actions/checkout@v4
with:
entrypoint: /entrypoint.sh
- name: Configure env
run: echo "SHUNIT2=\"$PWD/shunit2/shunit2\"" >> $GITHUB_ENV
- name: Run tests
run: ./test/ronin_install_test.sh
run: /entrypoint.sh "./test/ronin_install_test.sh"

macos:
runs-on: macos-latest
Expand Down

0 comments on commit 9778a0d

Please sign in to comment.