Skip to content

update state ABI & fix getStateInfoByState #29

update state ABI & fix getStateInfoByState

update state ABI & fix getStateInfoByState #29

Workflow file for this run

name: e2e driver-did-iden3
on:
pull_request:
workflow_dispatch:
jobs:
run_e2e:
env:
ETHEREUM_CONTRACT_ADDRESS: "0x134B1BE34911E39A8397ec6289782989729807a4"
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 " mumbai:" >> resolvers.settings.yaml
echo -e " contractAddress: ${{ env.ETHEREUM_CONTRACT_ADDRESS }}" >> resolvers.settings.yaml
echo -e " networkURL: ${{ secrets.POLYGON_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 }} \
--bail --verbose
- name: e2e tests finished
if: steps.e2e.outcome != 'success'
run: exit 1
# / TESTS