Skip to content

Generated from https://github.com/vmactions/base-vm #50

Generated from https://github.com/vmactions/base-vm

Generated from https://github.com/vmactions/base-vm #50

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')}}
strategy:
matrix:
release: [ "6.2.2", "6.4.0", ""]
runs: [ "ubuntu-22.04"]
runs-on: ${{ matrix.runs }}
name: sshfs DragonflyBSD
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
SEC_VBOX : ${{ secrets.SEC_VBOX }}
steps:
- uses: actions/checkout@v4
- name: Test in DragonflyBSD
id: test
uses: vmactions/dragonflybsd-vm@85e3e205a010e875722c72bbb24d63ad4382df53
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
pkg install -y socat
mem: 2048
copyback: false
release: ${{ matrix.release }}
nat: |
"10022": "22"
"8080": "80"
"8443": "443"
udp:"8081": "80"
usesh: true
sync: sshfs
run: |
tree .
tree $HOME/work/
- name: Test NAT
run:
ssh -p 10022 -i $HOME/.ssh/host.id_rsa root@localhost "uname -a;whoami;pwd"
test:
strategy:
matrix:
release: [ "6.2.2", "6.4.0", ""]
runs: [ "ubuntu-22.04"]
runs-on: ${{ matrix.runs }}
name: DragonflyBSD
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
SEC_VBOX : ${{ secrets.SEC_VBOX }}
steps:
- uses: actions/checkout@v4
- name: Test in DragonflyBSD
id: test
uses: vmactions/dragonflybsd-vm@85e3e205a010e875722c72bbb24d63ad4382df53
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
pkg install -y socat
mem: 2048
copyback: false
release: ${{ matrix.release }}
nat: |
"10022": "22"
"8080": "80"
"8443": "443"
udp:"8081": "80"
usesh: true
run: |
if [ -n "test" ]; then
echo "false"
fi
if [ "test" ]; then
echo "test"
fi
pwd
ls -lah
whoami
env
uname -a
echo "OK"
- name: Test NAT
run:
ssh -p 10022 -i $HOME/.ssh/host.id_rsa root@localhost "uname -a;whoami;pwd"