-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (41 loc) · 1.47 KB
/
run-testsuite.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
name: Run testsuite
on:
push:
jobs:
run-testsuite:
name: WebDAV test suite
runs-on: ubuntu-latest
env:
ARTIFACTS: ${HOME}/artifacts
ROBOT_ARGS: -L DEBUG --variable dav.host:storm.test.example --variable remote.dav.host:storm-alias.test.example --variable remote.davs.port:443 --exclude known-issue
OIDC_AGENT_SECRET: ${{ secrets.OIDC_AGENT_SECRET }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Provide trustanchors
working-directory: compose
run: docker compose up trust
- name: Start services
working-directory: compose
run: docker compose up --build -d storage-setup webdav nginx
- name: Run testsuite
if: ${{ always() }}
working-directory: compose
run: |
docker compose up -d ts
docker compose exec -T ts bash -c '/scripts/ci-run-testsuite.sh'
- name: Create artifacts directory
if: ${{ always() }}
run: mkdir -p ${ARTIFACTS}
- name: Collect test reports
if: ${{ always() }}
run: docker cp storm-webdav-ts-1:/home/test/robot/reports ${ARTIFACTS}
- name: Collect service log
if: ${{ always() }}
run: docker logs storm-webdav-webdav-1 > ${ARTIFACTS}/storm-webdav-server.log 2>&1
- name: Archive reports
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: logs-and-reports
path: ${{ env.ARTIFACTS }}