R: Fix build action sequence

This commit is contained in:
Ivan 2025-03-06 21:33:51 +03:00
parent 39938ff9dd
commit 28b147ed28
4 changed files with 8 additions and 5 deletions

View File

@ -35,14 +35,14 @@ jobs:
- name: Build
run: |
npm install -g typescript vite jest playwright
npx playwright install --with-deps
npm ci
npx playwright install --with-deps
npm run build --if-present
- name: Run CI
run: |
npm run lint
npm test
npm run teste2e
npm run test:e2e
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:

View File

@ -6,7 +6,7 @@
"scripts": {
"generate": "lezer-generator src/components/RSInput/rslang/rslangFast.grammar -o src/components/RSInput/rslang/parser.ts && lezer-generator src/components/RSInput/rslang/rslangAST.grammar -o src/components/RSInput/rslang/parserAST.ts && lezer-generator src/components/RefsInput/parse/refsText.grammar -o src/components/RefsInput/parse/parser.ts",
"test": "jest",
"teste2e": "playwright test",
"test:e2e": "playwright test",
"dev": "vite --host",
"build": "tsc && vite build",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",

View File

@ -57,7 +57,10 @@ export default ({ mode }: { mode: string }) => {
muteWarningsPlugin(warningsToIgnore)
],
server: {
port: Number(process.env.VITE_PORTAL_FRONT_PORT)
port: Number(process.env.VITE_PORTAL_FRONT_PORT),
watch: {
ignored: ['**/tests/**']
}
},
publicDir: 'public',
build: {

View File

@ -8,7 +8,7 @@ function RunTests() {
function TestFrontend() {
Set-Location $frontend
& npm run teste2e
& npm run test:e2e
}
RunTests