add PKH resolver #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e driver-did-iden3 | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
run_e2e: | |
env: | |
STATE_CONTRACT_ADDRESS_POLYGON_AMOY: "0x1a4cC30f2aA0377b0c3bc9848766D90cb4404124" | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Build file with supported networks | |
run: | | |
echo -e "polygon:" > resolvers.settings.yaml | |
echo -e " amoy:" >> resolvers.settings.yaml | |
echo -e " contractAddress: ${{ env.STATE_CONTRACT_ADDRESS_POLYGON_AMOY }}" >> resolvers.settings.yaml | |
echo -e " networkURL: ${{ secrets.POLYGON_AMOY_NODE_URL }}" >> resolvers.settings.yaml | |
- name: Docker build driver container | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
file: Dockerfile | |
load: true | |
tags: iden3-did-driver:develop | |
cache-from: type=gha | |
cache-to: type=gha | |
- name: iden3-did-driver | |
run: docker run -p 8080:8080 -d --network host --name iden3-did-driver iden3-did-driver:develop | |
- name: logs | |
run: docker logs iden3-did-driver | |
- name: Readiness probe for issuer service | |
run: > | |
curl --connect-timeout 5 | |
--max-time 10 | |
--retry 10 | |
--retry-max-time 120 | |
--retry-connrefused | |
'http://localhost:8080/status' | |
# TESTS | |
- name: Run Newman e2e | |
id: e2e | |
continue-on-error: true | |
run: | | |
npm install -g newman && \ | |
newman run tests/e2e/http_nameservice.postman_collection.json \ | |
-g ./tests/e2e/dev_env.json \ | |
--global-var issuer_server=${{ secrets.ISSUER_URL }} \ | |
--global-var username=${{ secrets.ISSUER_NODE_USER }} \ | |
--global-var password=${{ secrets.ISSUER_NODE_PASSWROD }} \ | |
--bail --verbose | |
- name: Run state tests | |
id: e2e_state | |
continue-on-error: true | |
run: | | |
npm install -g newman && \ | |
newman run tests/e2e/state_resolve_tests.json \ | |
-g ./tests/e2e/dev_env.json \ | |
--bail --verbose | |
- name: e2e tests finished | |
if: steps.e2e.outcome != 'success' | |
run: exit 1 | |
- name: e2e test state finished | |
if: steps.e2e_state.outcome != 'success' | |
run: exit 1 | |
# / TESTS |