From 32935ca57f516f00af78f80e9971bb0cd32bef84 Mon Sep 17 00:00:00 2001 From: Damien LACHAUME / PALO-IT Date: Fri, 26 Jan 2024 16:58:44 +0100 Subject: [PATCH] update job --- .github/workflows/test-client.yml | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/.github/workflows/test-client.yml b/.github/workflows/test-client.yml index 344a1dea88c..29a0b1fc816 100644 --- a/.github/workflows/test-client.yml +++ b/.github/workflows/test-client.yml @@ -170,24 +170,6 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 - - name: Prepare environment variables - id: prepare - shell: bash - run: | - if [[ -n "${{ inputs.commit_sha }}" ]]; then - echo "sha=${{ inputs.commit_sha }}" >> $GITHUB_OUTPUT - else - echo "branch=main" >> $GITHUB_OUTPUT - fi - - if [[ "${{ inputs.enable_debug }}" == "true" ]]; then - echo "debug_level=-vvv" >> $GITHUB_OUTPUT - fi - - echo "NETWORK=${{ inputs.network }}" >> $GITHUB_ENV - echo "AGGREGATOR_ENDPOINT=${{ inputs.aggregator_endpoint }}" >> $GITHUB_ENV - echo "GENESIS_VERIFICATION_KEY=$(curl -s ${{ inputs.genesis_verification_key }})" >> $GITHUB_ENV - - name: Download built artifacts uses: dawidd6/action-download-artifact@v2 with: @@ -202,13 +184,6 @@ jobs: working-directory: mithril-client-wasm run: tar -xvzf pkg/*.tgz -C pkg/ && mv pkg/package/* pkg/ - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'npm' - cache-dependency-path: mithril-client-wasm/www-test/package-lock.json - - name: Install dependencies working-directory: mithril-client-wasm run: make www-test-install @@ -220,12 +195,14 @@ jobs: echo "GENESIS_VERIFICATION_KEY=$(curl -s ${{ inputs.genesis_verification_key }})" >> ./www-test/.env - name: Start the 'www-test' server + working-directory: mithril-client-wasm shell: bash run: make www-test-serve & - name: Run Chrome headless run: | - whereis chrome + which google-chrome + whereis google-chrome if chrome --headless --virtual-time-budget=200000 --timeout=200000 --dump-dom http://localhost:8080 | grep -q 'title="FAILED"'; then echo "Mithril client wasm tests failed." exit 1