ci: Run frontend tests in CI

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2458>
2154-add-to-playlist-pop-up-hidden-by-now-playing-screen
Georg Krause 2023-06-11 11:01:11 +02:00
rodzic 766380f31d
commit 95ead5bc58
2 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -276,9 +276,6 @@ test_front:
needs: needs:
- job: lint_front - job: lint_front
rules: rules:
# Disabled for now since no vitest dom emulation is providing
# AudioContext, which is required for our HTML audio player
- when: never
- if: $CI_COMMIT_BRANCH =~ /(stable|develop)/ - if: $CI_COMMIT_BRANCH =~ /(stable|develop)/
- changes: [front/**/*] - changes: [front/**/*]

Wyświetl plik

@ -10,7 +10,7 @@
"build:deployment": "vite build", "build:deployment": "vite build",
"serve": "vite preview", "serve": "vite preview",
"test": "vitest run", "test": "vitest run",
"test:unit": "vitest run", "test:unit": "vitest run --coverage",
"lint": "eslint --ext .ts,.js,.vue,.json,.html src test public/embed.html", "lint": "eslint --ext .ts,.js,.vue,.json,.html src test public/embed.html",
"lint:tsc": "vue-tsc --noEmit", "lint:tsc": "vue-tsc --noEmit",
"fix-fomantic-css": "scripts/fix-fomantic-css.sh", "fix-fomantic-css": "scripts/fix-fomantic-css.sh",