Skip to content

Commit

Permalink
ci: update ci to include devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
frazarshad committed Aug 24, 2024
1 parent aba325a commit 0c02735
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:
branches: [main]
types:
- labeled
- synchronize
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
Expand All @@ -17,6 +20,7 @@ on:
options:
- local
- emerynet
- devnet
phrase:
description: 'The mnemonic phrase for the account to use in testing'
required: false
Expand All @@ -32,7 +36,7 @@ jobs:
runs-on: ubuntu-latest

env:
IS_EMERYNET_TEST: ${{ github.event_name == 'schedule' || inputs.network == 'emerynet' }}
NETWORK: ${{ inputs.network || contains(github.event.pull_request.labels.*.name, 'emerynet') && 'emerynet' || contains(github.event.pull_request.labels.*.name, 'devnet') && 'devnet' || github.event_name == 'schedule' && 'emerynet' || 'local' }}

steps:
- name: Checkout
Expand All @@ -43,8 +47,8 @@ jobs:
docker compose -f tests/e2e/docker-compose.yml --profile $SYNPRESS_PROFILE up --build --exit-code-from synpress
env:
# conditionals based on github event
SYNPRESS_PROFILE: ${{ env.IS_EMERYNET_TEST == 'true' && 'daily-tests' || 'synpress' }}
CYPRESS_AGORIC_NET: ${{ env.IS_EMERYNET_TEST == 'true' && 'emerynet' || 'local' }}
SYNPRESS_PROFILE: ${{ env.NETWORK != 'local' && 'daily-tests' || 'synpress' }}
CYPRESS_AGORIC_NET: ${{ env.NETWORK }}
# for docker-compose.yml
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
Expand Down

0 comments on commit 0c02735

Please sign in to comment.