mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-24 08:08:18 -05:00
refactor: move project ids list as env variable
This commit is contained in:
parent
e137357fb7
commit
f6a9d4e4b4
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 }}
|
STATIC_HOST: ${{ secrets.STATIC_HOST }}
|
||||||
SCRATCH_ENV: ${{ vars.SCRATCH_ENV }}
|
SCRATCH_ENV: ${{ vars.SCRATCH_ENV }}
|
||||||
ONBOARDING_TEST_ACTIVE: ${{ secrets.ONBOARDING_TEST_ACTIVE }}
|
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_STARTING_DATE: ${{ secrets.ONBOARDING_TESTING_STARTING_DATE }}
|
||||||
ONBOARDING_TESTING_ENDING_DATE: ${{ secrets.ONBOARDING_TESTING_ENDING_DATE }}
|
ONBOARDING_TESTING_ENDING_DATE: ${{ secrets.ONBOARDING_TESTING_ENDING_DATE }}
|
||||||
|
|
||||||
|
|
|
@ -106,14 +106,7 @@ const STEP_NAMES = [
|
||||||
'make-music-step'
|
'make-music-step'
|
||||||
];
|
];
|
||||||
|
|
||||||
const projectIds = {
|
const projectIds = JSON.parse(process.env.ONBOARDING_TEST_PROJECT_IDS);
|
||||||
clicker: '10128368',
|
|
||||||
pong: '10128515',
|
|
||||||
animateCharacter: '10128067',
|
|
||||||
makeItFly: '114019829',
|
|
||||||
recordSound: '1031325137',
|
|
||||||
makeMusic: '10012676'
|
|
||||||
};
|
|
||||||
|
|
||||||
const tutorialIds = {
|
const tutorialIds = {
|
||||||
clicker: 'Make-A-Game',
|
clicker: 'Make-A-Game',
|
||||||
|
|
|
@ -288,6 +288,16 @@ module.exports = {
|
||||||
'process.env.ONBOARDING_TEST_ACTIVE': `"${
|
'process.env.ONBOARDING_TEST_ACTIVE': `"${
|
||||||
process.env.ONBOARDING_TEST_ACTIVE || true
|
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': `"${
|
||||||
process.env.ONBOARDING_TESTING_STARTING_DATE || '2024-01-20'
|
process.env.ONBOARDING_TESTING_STARTING_DATE || '2024-01-20'
|
||||||
}"`,
|
}"`,
|
||||||
|
|
Loading…
Reference in a new issue