diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 79511f84b..6326e9587 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -69,6 +69,7 @@ jobs: STATIC_HOST: ${{ secrets.STATIC_HOST }} SCRATCH_ENV: ${{ vars.SCRATCH_ENV }} ONBOARDING_TEST_ACTIVE: ${{ secrets.ONBOARDING_TEST_ACTIVE }} + ONBOARDING_TEST_PROJECT_IDS: ${{ secrets.ONBOARDING_TEST_PROJECT_IDS }} ONBOARDING_TESTING_STARTING_DATE: ${{ secrets.ONBOARDING_TESTING_STARTING_DATE }} ONBOARDING_TESTING_ENDING_DATE: ${{ secrets.ONBOARDING_TESTING_ENDING_DATE }} diff --git a/src/components/journeys/editor-journey/editor-journey.jsx b/src/components/journeys/editor-journey/editor-journey.jsx index ec480858e..d83a9a8d2 100644 --- a/src/components/journeys/editor-journey/editor-journey.jsx +++ b/src/components/journeys/editor-journey/editor-journey.jsx @@ -106,14 +106,7 @@ const STEP_NAMES = [ 'make-music-step' ]; -const projectIds = { - clicker: '10128368', - pong: '10128515', - animateCharacter: '10128067', - makeItFly: '114019829', - recordSound: '1031325137', - makeMusic: '10012676' -}; +const projectIds = JSON.parse(process.env.ONBOARDING_TEST_PROJECT_IDS); const tutorialIds = { clicker: 'Make-A-Game', diff --git a/webpack.config.js b/webpack.config.js index f87706577..994a14ccf 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -288,6 +288,16 @@ module.exports = { 'process.env.ONBOARDING_TEST_ACTIVE': `"${ process.env.ONBOARDING_TEST_ACTIVE || true }"`, + 'process.env.ONBOARDING_TEST_PROJECT_IDS': `'${process.env.ONBOARDING_TEST_PROJECT_IDS || JSON.stringify( + { + clicker: '10128368', + pong: '10128515', + animateCharacter: '10128067', + makeItFly: '114019829', + recordSound: '1031325137', + makeMusic: '10012676' + } + )}'`, 'process.env.ONBOARDING_TESTING_STARTING_DATE': `"${ process.env.ONBOARDING_TESTING_STARTING_DATE || '2024-01-20' }"`,