diff options
| author | Max Isom <[email protected]> | 2022-03-13 17:40:33 -0400 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2022-03-13 17:40:33 -0400 |
| commit | 03d5cfffd1a9cd8a9977de0d24cce1be0cc73210 (patch) | |
| tree | 04b2cbee5b356ecfa094a19cf6f1f0359a0a1b98 | |
| parent | 417a5fb5542f92af2556916244c37ef49fd34e34 (diff) | |
| download | muse-03d5cfffd1a9cd8a9977de0d24cce1be0cc73210.tar.xz muse-03d5cfffd1a9cd8a9977de0d24cce1be0cc73210.zip | |
Add type check workflow
| -rw-r--r-- | .github/workflows/build.yml | 14 | ||||
| -rw-r--r-- | .github/workflows/type-check.yml | 20 | ||||
| -rw-r--r-- | tsconfig.json | 6 |
3 files changed, 24 insertions, 16 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d13402..eb0e73a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,8 +1,6 @@ name: Lint -on: - push: - pull_request: +on: push jobs: build: @@ -13,15 +11,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '16' - - name: Cache dependencies - uses: actions/cache@v1 - with: - path: ./node_modules - key: ${{ runner.OS }}-dependencies-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.OS }}-dependencies-${{ env.cache-name }}- - ${{ runner.OS }}-dependencies- - ${{ runner.OS }}- + cache: 'yarn' - name: Install dependencies run: yarn install - name: Generate Prisma client diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml new file mode 100644 index 0000000..bcdc39a --- /dev/null +++ b/.github/workflows/type-check.yml @@ -0,0 +1,20 @@ +name: Type Check + +on: push + +jobs: + build: + name: Type Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v2 + with: + node-version: '16' + cache: 'yarn' + - name: Install dependencies + run: yarn install + - name: Generate Prisma client + run: yarn prisma generate + - name: Run type check + run: yarn tsc diff --git a/tsconfig.json b/tsconfig.json index 2970aa3..b5326f8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,14 +5,12 @@ "module": "ES2020", "moduleResolution": "node", "declaration": true, - "outDir": "dist", - "declarationDir": "dts", "strict": true, "experimentalDecorators": true, - "emitDecoratorMetadata": true, "esModuleInterop": true, "sourceMap": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "noEmit": true }, "include": ["src"], "exclude": ["node_modules"] |
