Skip to content

Commit

Permalink
refactor: make smoke test job more generalizable (QLT-77) (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
effervescentia authored Nov 11, 2024
1 parent 1fabaab commit 2e689dc
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/jobs/smoke/run-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,9 @@ parameters:
tags:
type: string
default: ""
qualitywatcher:
type: boolean
default: false
stable-only:
type: boolean
default: true
smoke-command:
type: string
default: "test:smoke:stable"
env-name-path:
type: string
description: Path to the env_name file
Expand Down Expand Up @@ -62,20 +59,11 @@ steps:
name: Run Smoke Tests
environment:
CYPRESS_INCLUDE_TAGS: << parameters.tags >>
QUALITYWATCHER_ENABLED: << parameters.qualitywatcher >>
command: |
yarn test:smoke<<# parameters.stable-only >>:stable<</ parameters.stable-only >> <<# parameters.qualitywatcher >>|| true<</ parameters.qualitywatcher >>
command: yarn << parameters.smoke-command >>
- save_cache:
key: smoke-test-build-cache-{{ checksum "commit.txt" }}
paths:
- node_modules/.cache/turbo
- when:
condition: << parameters.qualitywatcher >>
steps:
- persist_to_workspace:
root: "."
paths:
- apps/smoke-test-runner/qualitywatcher-results
- store_test_results:
path: apps/smoke-test-runner/cypress/results
- store_artifacts:
Expand Down

0 comments on commit 2e689dc

Please sign in to comment.