Skip to content

Commit

Permalink
update job
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Jan 26, 2024
1 parent b9bed55 commit 32935ca
Showing 1 changed file with 3 additions and 26 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/test-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 32935ca

Please sign in to comment.