mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #8900 from MiroslavDionisiev/feat/move-project-ids
refactor: move project ids list as env variable
This commit is contained in:
commit
0c02fa9984
3 changed files with 12 additions and 8 deletions
1
.github/workflows/ci-cd.yml
vendored
1
.github/workflows/ci-cd.yml
vendored
|
@ -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 }}
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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'
|
||||
}"`,
|
||||
|
|
Loading…
Reference in a new issue