Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Dec 3, 2023
1 parent c0ffff0 commit 6528cb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- uses: actions/checkout@v4
- name: Test in DragonflyBSD
id: test
uses: vmactions/dragonflybsd-vm@07bafa8a6a264838c83239d20d2523bc326a3ac7
uses: vmactions/dragonflybsd-vm@c0ffff096365e7b4440bd653e27d00d99a6b722c
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
- uses: actions/checkout@v4
- name: Test in DragonflyBSD
id: test
uses: vmactions/dragonflybsd-vm@07bafa8a6a264838c83239d20d2523bc326a3ac7
uses: vmactions/dragonflybsd-vm@c0ffff096365e7b4440bd653e27d00d99a6b722c
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ async function setup(nat, mem) {

core.info("First boot");

await shell("bash run.sh waitForBooting");

await shell("bash run.sh waitForLoginTag");
await shell("bash run.sh waitForVMReady");
core.endGroup();

core.startGroup("Run onStarted in VM");
Expand Down
20 changes: 2 additions & 18 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,8 @@ importVM() {



waitForLoginTag() {
if [ -e "hooks/waitForLoginTag.sh" ]; then
echo "Run hooks/waitForLoginTag.sh"
. hooks/waitForLoginTag.sh
else
bash $vmsh waitForText "$osname" "$VM_LOGIN_TAG"
fi

waitForVMReady() {
bash $vmsh waitForVMReady "$osname"
}


Expand Down Expand Up @@ -251,16 +245,6 @@ onBeforeStartVM() {
fi
}

waitForBooting() {
#press enter for grub booting to speedup booting
if [ -e "hooks/waitForBooting.sh" ]; then
echo "Run hooks/waitForBooting.sh"
. hooks/waitForBooting.sh
else
echo "Skip hooks/waitForBooting.sh"
fi
}


showDebugInfo() {
echo "==================Debug Info===================="
Expand Down

0 comments on commit 6528cb2

Please sign in to comment.