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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
npm install -g typescript vite jest playwright
|
npm install -g typescript vite jest playwright
|
||||||
npx playwright install --with-deps
|
|
||||||
npm ci
|
npm ci
|
||||||
|
npx playwright install --with-deps
|
||||||
npm run build --if-present
|
npm run build --if-present
|
||||||
- name: Run CI
|
- name: Run CI
|
||||||
run: |
|
run: |
|
||||||
npm run lint
|
npm run lint
|
||||||
npm test
|
npm test
|
||||||
npm run teste2e
|
npm run test:e2e
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"scripts": {
|
"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",
|
"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",
|
"test": "jest",
|
||||||
"teste2e": "playwright test",
|
"test:e2e": "playwright test",
|
||||||
"dev": "vite --host",
|
"dev": "vite --host",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
||||||
|
|
|
@ -57,7 +57,10 @@ export default ({ mode }: { mode: string }) => {
|
||||||
muteWarningsPlugin(warningsToIgnore)
|
muteWarningsPlugin(warningsToIgnore)
|
||||||
],
|
],
|
||||||
server: {
|
server: {
|
||||||
port: Number(process.env.VITE_PORTAL_FRONT_PORT)
|
port: Number(process.env.VITE_PORTAL_FRONT_PORT),
|
||||||
|
watch: {
|
||||||
|
ignored: ['**/tests/**']
|
||||||
|
}
|
||||||
},
|
},
|
||||||
publicDir: 'public',
|
publicDir: 'public',
|
||||||
build: {
|
build: {
|
||||||
|
|
|
@ -8,7 +8,7 @@ function RunTests() {
|
||||||
|
|
||||||
function TestFrontend() {
|
function TestFrontend() {
|
||||||
Set-Location $frontend
|
Set-Location $frontend
|
||||||
& npm run teste2e
|
& npm run test:e2e
|
||||||
}
|
}
|
||||||
|
|
||||||
RunTests
|
RunTests
|
Loading…
Reference in New Issue
Block a user