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 2c0b127
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ronin-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,23 @@ 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: 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"
env:
HOME: /data/data/com.termux/files/home
- 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"
env:
HOME: /data/data/com.termux/files/home

macos:
runs-on: macos-latest
Expand Down

0 comments on commit 2c0b127

Please sign in to comment.