mirror of
https://github.com/unraid/api.git
synced 2025-12-31 05:29:48 -06:00
chore(web): add testing step to github actions
This commit is contained in:
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -136,6 +136,9 @@ jobs:
|
||||
continue-on-error: true
|
||||
run: npm run lint
|
||||
|
||||
- name: Test
|
||||
run: npm run test:ci
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
|
||||
@@ -12,7 +12,11 @@ const defaultMarkedExtension: MarkedExtension = {
|
||||
|
||||
/**
|
||||
* Helper class to build or conveniently use a markdown parser.
|
||||
*
|
||||
* - Use `Markdown.create` to extend or customize parsing functionality.
|
||||
* - Use `Markdown.parse` to conveniently parse markdown to safe html.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
||||
export class Markdown {
|
||||
private static instance = Markdown.create();
|
||||
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
"serve": "serve dist/nuxt-custom-elements/unraid-components",
|
||||
"codegen": "graphql-codegen --config codegen.ts -r dotenv/config",
|
||||
"codegen:watch": "graphql-codegen --config codegen.ts --watch -r dotenv/config",
|
||||
"test": "vitest"
|
||||
"test": "vitest",
|
||||
"test:ci": "vitest run"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@graphql-codegen/cli": "^5.0.2",
|
||||
|
||||
Reference in New Issue
Block a user