Skip to content

Commit

Permalink
fix: environment variables (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Paitrault <[email protected]>
  • Loading branch information
Freyskeyd authored Feb 29, 2024
1 parent fbe2421 commit 66c2a6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/frontend:erc20-messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
required: false

env:
E2E_TEST_TYPE: ${{ inputs.e2e-test-type }}
E2E_TEST_TYPE: ${{ inputs.e2e-test-type || 'light' }}
TOPOS_DOCKER_TAG: ${{ inputs.topos-docker-tag || 'latest' }}
CONTRACTS_DOCKER_TAG: ${{ inputs.topos-smart-contracts-docker-tag || 'latest' }}
EXECUTOR_SERVICE_DOCKER_TAG: ${{ inputs.executor-service-docker-tag || 'latest' }}
Expand Down Expand Up @@ -60,6 +60,7 @@ jobs:
steps:
- name: Display stack component versions
run: |
echo "event type: ${{ github.event_name }}"
echo "infra ref: ${{ env.INFRA_REF }}"
echo "frontend ref: ${{ env.FRONTEND_REF }}"
echo "topos docker tag: ${{ env.TOPOS_DOCKER_TAG }}"
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/topos:integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,17 @@ jobs:
cd infra &&
npm install
- name: Setup environment
run: |
cd infra
cat .env | grep -v '^\s*$\|^\s*\#' | xargs -I {} echo "{}" >> $GITHUB_ENV
echo "LOCAL_ERC20_HOME=${PWD}" >> $GITHUB_ENV
echo "TOPOS_MESSAGING_PROTOCOL_CONTRACTS_VERSION=${{ env.CONTRACTS_DOCKER_TAG }}" >> $GITHUB_ENV
echo "TOPOS_VERSION=${{ env.TOPOS_DOCKER_TAG }}" >> $GITHUB_ENV
- name: Start local ERC20 messaging infra containers
run: >
cd infra &&
source .env &&
./tests/network.sh start
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
Expand All @@ -79,8 +86,6 @@ jobs:
TOPOS_CORE_PROXY_SALT: ${{ secrets.TOPOS_CORE_PROXY_SALT }}
ERC20_MESSAGING_SALT: ${{ secrets.ERC20_MESSAGING_SALT }}
SUBNET_REGISTRATOR_SALT: ${{ secrets.SUBNET_REGISTRATOR_SALT }}
TOPOS_VERSION: ${{ env.TOPOS_DOCKER_TAG }}
TOPOS_MESSAGING_PROTOCOL_CONTRACTS_VERSION: ${{ env.CONTRACTS_DOCKER_TAG }}

- name: Debug containers
if: failure()
Expand All @@ -98,7 +103,6 @@ jobs:
- name: Run network health check tests
run: >
cd infra &&
source .env &&
./tests/test_network_health.sh
env:
DOCKER_DEFAULT_PLATFORM: linux/amd64
Expand All @@ -112,7 +116,6 @@ jobs:
- name: Run certificates production tests
run: >
cd infra &&
source .env &&
./tests/test_cert_production.sh
env:
DOCKER_DEFAULT_PLATFORM: linux/amd64
Expand All @@ -126,7 +129,6 @@ jobs:
- name: Run certificate delivery test
run: >
cd infra &&
source .env &&
./tests/test_cert_delivery.sh
env:
DOCKER_DEFAULT_PLATFORM: linux/amd64
Expand All @@ -140,7 +142,6 @@ jobs:
- name: Run transaction included in certificate test
run: >
cd infra &&
source .env &&
./tests/test_transaction_in_certificate.sh
env:
DOCKER_DEFAULT_PLATFORM: linux/amd64
Expand All @@ -154,7 +155,6 @@ jobs:
- name: Run target sequencer cert delivery test
run: >
cd infra &&
source .env &&
./tests/test_cert_sequencer_delivery.sh
env:
DOCKER_DEFAULT_PLATFORM: linux/amd64
Expand All @@ -168,7 +168,6 @@ jobs:
- name: Run certificate inclusion test
run: >
cd infra &&
source .env &&
./tests/test_cert_inclusion.sh
env:
DOCKER_DEFAULT_PLATFORM: linux/amd64
Expand Down

0 comments on commit 66c2a6a

Please sign in to comment.