diff --git a/.github/workflows/build-n-test.yml b/.github/workflows/build-n-test.yml index 23854a8..389fb6d 100644 --- a/.github/workflows/build-n-test.yml +++ b/.github/workflows/build-n-test.yml @@ -15,6 +15,17 @@ on: - '**.md' jobs: + json-validate: + name: Validate JSON/YML files + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: json-yaml-validate + uses: GrantBirki/json-yaml-validate@v2 + with: + mode: fail + test-backend: name: Test backend runs-on: ubuntu-22.04 diff --git a/ui/tsconfig.json b/ui/tsconfig.json index d89c654..edadf95 100644 --- a/ui/tsconfig.json +++ b/ui/tsconfig.json @@ -1,32 +1,44 @@ { - "compilerOptions": { - "target": "ESNext", - "lib": ["DOM", "DOM.Iterable", "ESNext"], - "module": "ESNext", - "skipLibCheck": true, - - /* Bundler mode */ - "moduleResolution": "bundler", - "allowImportingTsExtensions": true, - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - "jsx": "react-jsx", - - /* Linting */ - "strict": true, - "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true, - - /* path alias */ - "baseUrl": ".", - "paths": { - "@/*": ["./src/*"], - "@hooks/*": ["./src/hooks/*"], - "@pages/*": ["./src/pages/*"], - "@comps/*": ["./src/components/*"] - } - }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "compilerOptions": { + "target": "ESNext", + "lib": [ + "DOM", + "DOM.Iterable", + "ESNext" + ], + "module": "ESNext", + "skipLibCheck": true, + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + "strict": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "baseUrl": ".", + "paths": { + "@/*": [ + "./src/*" + ], + "@hooks/*": [ + "./src/hooks/*" + ], + "@pages/*": [ + "./src/pages/*" + ], + "@comps/*": [ + "./src/components/*" + ] + } + }, + "include": [ + "src" + ], + "references": [ + { + "path": "./tsconfig.node.json" + } + ] }