-
Notifications
You must be signed in to change notification settings - Fork 130
53 lines (52 loc) · 1.42 KB
/
test-reva-cli.yml
File metadata and controls
53 lines (52 loc) · 1.42 KB
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
name: test-reva-cli
on:
pull_request:
paths-ignore:
- "docs/**"
- "*.md"
push:
branches:
- "*"
workflow_dispatch:
jobs:
build-and-test:
runs-on: self-hosted
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go environment
uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install judo
run: npm install -g @intuit/judo
- name: Build reva
run: make reva
- name: Build revad
run: make revad
- name: Create storage directory
run: mkdir -p tmp/revalocalstorage/data tmp/revalocalstorage/shares
- name: Create users.json
run: cp tests/integration/reva-cli/config/users.json tmp/users.json
- name: Create groups.json
run: cp tests/integration/reva-cli/config/groups.json tmp/groups.json
- name: Start revad
run: |
./cmd/revad/revad -c tests/integration/reva-cli/config/revad-localfs.toml &
echo $! > revad.pid
sleep 2
- name: Run reva CLI tests
run: make test-reva-cli
- name: Stop revad
run: |
if [ -f revad.pid ]; then
kill $(cat revad.pid) || true
rm revad.pid
fi
if: always()