mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-25 20:40:36 +03:00
R: Fix build action sequence
This commit is contained in:
parent
7252290416
commit
267dc0f16f
4
.github/workflows/frontend.yml
vendored
4
.github/workflows/frontend.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -8,7 +8,7 @@ function RunTests() {
|
|||
|
||||
function TestFrontend() {
|
||||
Set-Location $frontend
|
||||
& npm run teste2e
|
||||
& npm run test:e2e
|
||||
}
|
||||
|
||||
RunTests
|
Loading…
Reference in New Issue
Block a user