-
Notifications
You must be signed in to change notification settings - Fork 53
59 lines (48 loc) · 2.19 KB
/
ebsictv3.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: EBSI Conformance Test v3.2
on:
push:
branches-ignore:
- main
paths:
- 'waltid-libraries/credentials/**'
- 'waltid-libraries/crypto/**'
- 'waltid-libraries/protocols/**'
- 'waltid-libraries/waltid-did/**'
- 'waltid-services/services/waltid-issuer-api/**'
- '.github/workflows/**'
jobs:
EBSI-Conformance-Test-v3:
runs-on: ubuntu-latest
steps:
- name: The EBSI Confornace Test v3.2 job is starting
run: |
echo -e "🔎 The EBSI Confornace Test v3.2 job is starting\n"
- name: Docker
run: docker --version
- name: Check out repository code
uses: actions/checkout@v4
- name: Start ngrok tunnel
run: |
docker run --net=host -it -e NGROK_AUTHTOKEN=${{ secrets.NGROK_AUTH_TOKEN }} -d -p 4040:4040 ngrok/ngrok:latest http 7002
- name: Update config files
run: |
NGROK_URL=$(curl --retry 5 --retry-delay 5 --retry-connrefused -s http://127.0.0.1:4040/api/tunnels | jq -r '.tunnels[0].public_url')
sed -i 's|readonly ISSUER_URL=".*"|readonly ISSUER_URL="'"${NGROK_URL}"'"|g' .github/workflows/ebsictv3/EBSICTV3-IssueToHolder.sh
sed -i 's|baseUrl = ".*"|baseUrl = "'"${NGROK_URL}"'"|g' waltid-services/waltid-issuer-api/config/issuer-service.conf
echo "theurl"
echo ${NGROK_URL}
echo "theurl"
- name: Start Issuer API
run: |
docker build -t waltid/issuer-api:latest -f waltid-services/waltid-issuer-api/Dockerfile .
docker run --net=host -d -p 7002:7002 -v $PWD/waltid-services/waltid-issuer-api/config:/waltid-issuer-api/config --name waltid-issuer-api waltid/issuer-api:latest
echo "theurl"
echo ${NGROK_URL}
echo "theurl"
curl --retry 5 --retry-delay 5 --retry-connrefused "${NGROK_URL}/.well-known/openid-configuration"
- name: Execute test scripts
env:
EBSI_CT_PRIVATE_KEY_PARAM: "${{ secrets.EBSI_CT_PRIVATE_KEY_PARAM }}"
run: |
chmod +x .github/workflows/ebsictv3/EBSICTV3-IssueToHolder.sh
./.github/workflows/ebsictv3/EBSICTV3-IssueToHolder.sh