Skip to content

Commit ea4355b

Browse files
committed
chore(web): add testing step to github actions
1 parent 27834d9 commit ea4355b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ jobs:
136136
continue-on-error: true
137137
run: npm run lint
138138

139+
- name: Test
140+
run: npm run test:ci
141+
139142
- name: Build
140143
run: npm run build
141144

web/helpers/markdown.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ const defaultMarkedExtension: MarkedExtension = {
1212

1313
/**
1414
* Helper class to build or conveniently use a markdown parser.
15+
*
16+
* - Use `Markdown.create` to extend or customize parsing functionality.
17+
* - Use `Markdown.parse` to conveniently parse markdown to safe html.
1518
*/
19+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
1620
export class Markdown {
1721
private static instance = Markdown.create();
1822

web/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"serve": "serve dist/nuxt-custom-elements/unraid-components",
2424
"codegen": "graphql-codegen --config codegen.ts -r dotenv/config",
2525
"codegen:watch": "graphql-codegen --config codegen.ts --watch -r dotenv/config",
26-
"test": "vitest"
26+
"test": "vitest",
27+
"test:ci": "vitest run"
2728
},
2829
"devDependencies": {
2930
"@graphql-codegen/cli": "^5.0.2",

0 commit comments

Comments
 (0)