Skip to content

feat: add github action for EBSI Issuance CT tests #2

feat: add github action for EBSI Issuance CT tests

feat: add github action for EBSI Issuance CT tests #2

Workflow file for this run

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
- 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
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