Skip to content

Commit

Permalink
add: run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rsporny committed Oct 22, 2024
1 parent b6d50ab commit 7c13a69
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/actions/tests/run-e2e-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ inputs:
mc_epoch:
description: 'MC epoch to test (committee tests)'
required: false
deployment_mc_epoch:
description: 'Deployment MC epoch'
required: false
log_level:
description: 'Log CLI level'
required: false
Expand All @@ -41,6 +44,9 @@ runs:
if [ -n "${{ inputs.mc_epoch }}" ]; then
mc_epoch_switch="--mc-epoch ${{ inputs.mc_epoch }}"
fi
if [ -n "${{ inputs.deployment_mc_epoch }}" ]; then
deployment_mc_epoch_switch="--deployment-mc-epoch ${{ inputs.deployment_mc_epoch }}"
fi
if [ "${{ inputs.decrypt }}" = "true" ]; then
decrypt_switch="--decrypt"
fi
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,23 @@ jobs:
- name: Run smoke tests
uses: ./.github/actions/tests/run-e2e-tests
with:
blockchain: substrate
env: staging
decrypt: true
markers: "not active_flow and not passive_flow and (CD or rpc)"
- name: Save deployment main chain epoch
run: |
echo "DEPLOYMENT_MC_EPOCH=$(curl -s http://staging-preview-services-service.staging-preview.svc.cluster.local:1337/health | jq .currentEpoch)" >> $GITHUB_ENV
shell: bash
- name: Run all tests (some skipped due to new deployment)
uses: ./.github/actions/tests/run-e2e-tests
with:
blockchain: substrate
keyword: "test_get_status or test_get_params"
env: staging
decrypt: true
markers: "not active_flow and not passive_flow"
deployment_mc_epoch: ${{ env.DEPLOYMENT_MC_EPOCH }}


# build-and-publish-ghcr:
# permissions:
Expand Down

0 comments on commit 7c13a69

Please sign in to comment.