Skip to content

Commit

Permalink
Generated from base-vm
Browse files Browse the repository at this point in the history
  • Loading branch information
Generate.yml committed Oct 6, 2024
1 parent 4be6abc commit 5f4d3a2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/tpl/README.tpl.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ Support custom shell:
id: vm
uses: {{GITHUB_REPOSITORY}}@{{LATEST_MAJOR}}
- name: Custom shell step 1
shell: {{VM_OS_NAME}} {0}
run: |
cd $GITHUB_WORKSPACE;
shell: {{VM_OS_NAME}} {0}
run: |
cd $GITHUB_WORKSPACE;
pwd
echo "this is step 1, running inside the VM"
- name: Custom shell step 2
shell: {{VM_OS_NAME}} {0}
run: |
cd $GITHUB_WORKSPACE;
shell: {{VM_OS_NAME}} {0}
run: |
cd $GITHUB_WORKSPACE;
pwd
echo "this is step 2, running inside the VM"
...
Expand Down
26 changes: 23 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
port: 8000
- name: Test in Solaris
id: test
uses: vmactions/solaris-vm@fcaf8a3e47dfc514dac0f15b49a5c736d9b78be0
uses: vmactions/solaris-vm@fa459d368967f5c97f5ec2dd0c33a35c85ff314e
with:
envs: 'DEBUG MYTOKEN MYTOKEN2'
prepare: |
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
- uses: actions/checkout@v4
- name: Test in Solaris
id: test
uses: vmactions/solaris-vm@fcaf8a3e47dfc514dac0f15b49a5c736d9b78be0
uses: vmactions/solaris-vm@fa459d368967f5c97f5ec2dd0c33a35c85ff314e
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
Expand Down Expand Up @@ -163,7 +163,27 @@ jobs:
[ "$TEST_ENV" = "abc" ]
ssh -vvv -p 10022 -i $HOME/.ssh/host.id_rsa root@localhost "uname -a;whoami;pwd"


- name: Test custom shell
shell: solaris {0}
run: |
pwd
cd $GITHUB_WORKSPACE;
pwd
if [ -n "test" ]; then
echo "false"
fi
if [ "test" ]; then
echo "test"
fi
pwd
ls -lah
whoami
env
psrinfo -vp
cat /etc/release
psrinfo -v
echo "::memstat" | mdb -k
echo "OK"
Expand Down

0 comments on commit 5f4d3a2

Please sign in to comment.