-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (48 loc) · 1.4 KB
/
pjdfstest.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
name: pjdfstest
on:
pull_request:
push:
branches:
- 'main'
paths-ignore:
- 'docs/**'
- '**.md'
jobs:
pjdfstest:
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: init nanafs dep
run: |
sudo apt-get install -y libfuse3-dev fuse3 libssl-dev
sudo mkdir -p /var/lib/nanafs
sudo mkdir -p /etc/nanafs
mkdir -p /tmp/mnt/nanafs
sudo cp .github/configs/nanafs-fuse.conf /etc/nanafs/nanafs.conf
- name: Build nanafs binary
run: sudo make buildbin
- name: Run nanafs fuse daemon
run: sudo nanafs serve --config /etc/nanafs/nanafs.conf > /tmp/nanafs.log 2>&1 &
- name: Make pjdfstest
run: |
cp -r e2e/pjdfstest /tmp
cd /tmp/pjdfstest && sudo autoreconf -ifs && sudo ./configure && sudo make pjdfstest
- name: Run pjdfstest
run: |
df
sudo chmod 777 /tmp/mnt/nanafs && cd /tmp/mnt/nanafs
sudo prove -rv /tmp/pjdfstest
- name: Print nanafs log
if: failure()
run: cat /tmp/nanafs.log
# - name: Setup upterm session
# if: failure()
# timeout-minutes: 60
# uses: lhotari/action-upterm@v1