-
Notifications
You must be signed in to change notification settings - Fork 12
80 lines (65 loc) · 2.03 KB
/
regress.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
name: regress with sharedsecret
on:
push:
pull_request:
jobs:
regress:
name: Run regress with sharedsecret authentication
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: checkout gfarm2fs
id: checkout_gfarm2fs
run: |
git clone https://github.com/oss-tsukuba/gfarm2fs.git
- name: checkout cyrus-sasl-xoauth2-idp
id: checkout_xoauth2idp
run: |
git clone https://github.com/oss-tsukuba/cyrus-sasl-xoauth2-idp.git
- name: checkout jwt-server
id: checkout_jwtserver
run: |
git clone https://github.com/oss-tsukuba/jwt-server.git
- name: checkout jwt-logon
id: checkout_jwtlogon
run: |
git clone https://github.com/oss-tsukuba/jwt-logon.git
- name: checkout jwt-agent
id: checkout_jwtagent
run: |
git clone https://github.com/oss-tsukuba/jwt-agent.git
- name: docker compose build
id: compose
run: |
cd docker/dist
docker compose build --build-arg UID=$(id -u) c1
- name: docker compose up
id: up
run: |
cd docker/dist
docker compose up -d
- name: build_all
id: build_all
run: |
cd docker/dist
docker exec -u ${USER} -w /home/${USER}/gfarm/docker/dist gfarm-c1 \
sh ./all.sh
- name: regress_gfarm
id: regress_gfarm
run: |
cd docker/dist
docker exec -u ${USER} -w /home/${USER}/gfarm/docker/dist gfarm-c1 \
sh ./regress.sh
- name: extract log files from the container
if: always()
run: |
mkdir -p regress-log
docker exec -u ${USER} -w /home/${USER}/gfarm/build/regress \
gfarm-c1 sh -c 'tar cf - log.*' | ( cd regress-log && tar pxf - )
- name: upload log
if: always()
uses: actions/upload-artifact@v3
with:
name: regress-log
path: regress-log/*