Make sure experiment code exists during tests

It took quite a bit of tracking down when all my tests failed due
to my not having generated the Nimbus experiment types. Since the
code generation happens basically instantly, it seems fine to just
run it before running the tests.
This commit is contained in:
Vincent 2024-07-10 11:19:10 +02:00 коммит произвёл Vincent
Родитель 2a535802b0
Коммит 0cae758ad6
2 изменённых файлов: 1 добавлений и 2 удалений

1
.github/workflows/unittests.yaml поставляемый
Просмотреть файл

@ -15,7 +15,6 @@ jobs:
node-version: '22.3.x'
- run: npm ci
- run: npm run build-glean
- run: npm run build-nimbus
- run: npm test
- uses: actions/upload-artifact@v4
if: failure()

Просмотреть файл

@ -16,7 +16,7 @@
"start": "next start",
"lint": "stylelint '**/*.scss' && prettier --check './src' && next lint --max-warnings=0 && tsc -p tsconfig.json --noEmit",
"fix": "prettier --write './src' && next lint --fix && stylelint --fix '**/*.scss'",
"test": "jest",
"test": "npm run build-nimbus && jest",
"e2e": "playwright test src/e2e/",
"e2e:debug": "playwright test src/e2e/ --ui",
"e2e:smoke": "playwright test src/e2e/ --grep @smoke",