refactor: move project ids list as env variable

This commit is contained in:
MiroslavDionisiev 2024-11-08 13:43:40 +02:00
parent e137357fb7
commit f6a9d4e4b4
3 changed files with 12 additions and 8 deletions

View file

@ -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 }}

View file

@ -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',

View file

@ -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'
}"`,