Skip to content

Update from base vm #64

Update from base vm

Update from base vm #64

Workflow file for this run

name: Test
on:
workflow_dispatch:
release:
types: [ published ]
push:
branches:
- '*'
paths:
- '**.sh'
- '.github/workflows/test.yml'
- 'index.js'
- 'conf/*'
- 'hooks/*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
testsshfs:
if: ${{ !contains(github.repository, 'solaris') && !contains(github.repository, 'dragonflybsd') && !contains(github.repository, 'omnios')}}
strategy:
matrix:
release: [ "r151046", "r151048", "r151050" , "r151052" , ""]
runs: [ "ubuntu-22.04", "ubuntu-24.04"]
runs-on: ${{ matrix.runs }}
name: sshfs OmniOS
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
SEC_VBOX : ${{ secrets.SEC_VBOX }}
DEBUG: 1
steps:
- uses: actions/checkout@v4
- name: Creating Web console
uses: vmactions/cf-tunnel@v0
id: tunnel
with:
protocol: http
port: 8000
- name: Test in OmniOS
id: test
uses: vmactions/omnios-vm@eb13af6094f0c789112580d78f6a62a1d9e98eab
with:
envs: 'DEBUG MYTOKEN MYTOKEN2'
prepare: |
pkg install socat
release: ${{ matrix.release }}
nat: |
"10022": "22"
"8080": "80"
"8443": "443"
udp:"8081": "80"
usesh: true
sync: sshfs
run: |
ls -lah /root/work
tree $HOME/work/
if [ -z "$(ls -A $HOME/work)" ]; then
echo "sshfs error."
exit 1
fi
echo "TEST_ENV=abc" >>${GITHUB_ENV}
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"
- name: Test NAT
run:
echo "TEST_ENV=$TEST_ENV"
[ "$TEST_ENV" = "abc" ]
ssh -vvv -p 10022 -i $HOME/.ssh/host.id_rsa root@localhost "uname -a;whoami;pwd"
- name: Test custom shell
shell: omnios {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"
testnfs:
strategy:
matrix:
release: [ "r151046", "r151048", "r151050" , "r151052" , ""]
runs: [ "ubuntu-22.04", "ubuntu-24.04"]
runs-on: ${{ matrix.runs }}
name: nfs OmniOS
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
SEC_VBOX : ${{ secrets.SEC_VBOX }}
DEBUG: 1
steps:
- uses: actions/checkout@v4
- name: Creating Web console
uses: vmactions/cf-tunnel@v0
id: tunnel
with:
protocol: http
port: 8000
- name: Test in OmniOS
id: test
uses: vmactions/omnios-vm@eb13af6094f0c789112580d78f6a62a1d9e98eab
with:
envs: 'DEBUG MYTOKEN MYTOKEN2'
prepare: |
pkg install socat
release: ${{ matrix.release }}
nat: |
"10022": "22"
"8080": "80"
"8443": "443"
udp:"8081": "80"
usesh: true
sync: nfs
run: |
ls -lah /root/work
tree $HOME/work/
if [ -z "$(ls -A $HOME/work)" ]; then
echo "nfs error."
exit 1
fi
echo "TEST_ENV=abc" >>${GITHUB_ENV}
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"
- name: Test NAT
run:
echo "TEST_ENV=$TEST_ENV"
[ "$TEST_ENV" = "abc" ]
ssh -vvv -p 10022 -i $HOME/.ssh/host.id_rsa root@localhost "uname -a;whoami;pwd"
- name: Test custom shell
shell: omnios {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"
test:
strategy:
matrix:
release: [ "r151046", "r151048", "r151050" , "r151052" , ""]
runs: [ "ubuntu-22.04", "ubuntu-24.04"]
runs-on: ${{ matrix.runs }}
name: OmniOS
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
SEC_VBOX : ${{ secrets.SEC_VBOX }}
steps:
- uses: actions/checkout@v4
- name: Test in OmniOS
id: test
uses: vmactions/omnios-vm@eb13af6094f0c789112580d78f6a62a1d9e98eab
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
pkg install socat
mem: 4096
release: ${{ matrix.release }}
nat: |
"10022": "22"
"8080": "80"
"8443": "443"
udp:"8081": "80"
usesh: true
run: |
echo "TEST_ENV=abc" >>${GITHUB_ENV}
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"
- name: Test NAT
run:
echo "TEST_ENV=$TEST_ENV"
[ "$TEST_ENV" = "abc" ]
ssh -vvv -p 10022 -i $HOME/.ssh/host.id_rsa root@localhost "uname -a;whoami;pwd"
- name: Test custom shell
shell: omnios {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"