Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 3 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,40 +173,12 @@ jobs:
echo "Final E2E skip setting: $SKIP_E2E"
echo "Final BDD skip setting: $SKIP_BDD"

bdd-tests:
name: BDD Tests
runs-on: ubuntu-latest
needs: [check-commit-type]
if: needs.check-commit-type.outputs.skip-bdd != 'true'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.deployment_type == 'manual_tag_deploy' && github.event.inputs.tag_to_deploy || github.ref }}

- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node-pnpm

- name: Run BDD smoke tests
uses: ./.github/actions/bdd-tests
with:
test-type: 'smoke'

e2e-tests:
name: E2E Tests
uses: ./.github/workflows/e2e.yml
needs: [check-commit-type, bdd-tests]
if: needs.check-commit-type.outputs.skip-e2e != 'true'
with:
environment: 'production'
fail_on_error: true # Blocking: fail the pipeline if e2e tests fail
skip-e2e: false

build:
name: Build Project
runs-on: ubuntu-latest
needs: [lint, typecheck, bdd-tests, e2e-tests] # Wait for lint, typecheck, BDD tests AND e2e tests
if: always() && needs.lint.result == 'success' && needs.typecheck.result == 'success' && (needs.bdd-tests.result == 'success' || needs.bdd-tests.result == 'skipped') && (needs.e2e-tests.result == 'success' || needs.e2e-tests.result == 'skipped')
needs: [lint, typecheck ] # Wait for lint, typecheck, BDD tests AND e2e tests
# bdd-tests, e2e-tests disabled temporarily
if: always() && needs.lint.result == 'success' && needs.typecheck.result == 'success'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
Loading