-
-
Notifications
You must be signed in to change notification settings - Fork 22
112 lines (93 loc) · 2.28 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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: [ "13.2", ""]
runs: [ "ubuntu-22.04"]
runs-on: ${{ matrix.runs }}
name: sshfs FreeBSD
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
SEC_VBOX : ${{ secrets.SEC_VBOX }}
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@696b99cbf308d6db6fee8f1e1ffa1134d3d4b80f
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
pkg install -y curl
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: [ "13.2", ""]
runs: [ "ubuntu-22.04"]
runs-on: ${{ matrix.runs }}
name: FreeBSD
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
SEC_VBOX : ${{ secrets.SEC_VBOX }}
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@696b99cbf308d6db6fee8f1e1ffa1134d3d4b80f
with:
envs: 'MYTOKEN MYTOKEN2'
prepare: |
pkg install -y curl
mem: 2048
copyback: false
release: ${{ matrix.release }}
nat: |
"10022": "22"
"8080": "80"
"8443": "443"
udp:"8081": "80"
usesh: true
run: |
pwd
ls -lah
whoami
env
freebsd-version
- name: Test NAT
run:
ssh -p 10022 -i $HOME/.ssh/host.id_rsa root@localhost "uname -a;whoami;pwd"