mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-04-19 12:53:56 +02:00
Add type check workflow
This commit is contained in:
parent
417a5fb554
commit
03d5cfffd1
3 changed files with 24 additions and 16 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -1,8 +1,6 @@
|
||||||
name: Lint
|
name: Lint
|
||||||
|
|
||||||
on:
|
on: push
|
||||||
push:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -13,15 +11,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
- name: Cache dependencies
|
cache: 'yarn'
|
||||||
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 }}-
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: Generate Prisma client
|
- name: Generate Prisma client
|
||||||
|
|
20
.github/workflows/type-check.yml
vendored
Normal file
20
.github/workflows/type-check.yml
vendored
Normal file
|
@ -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
|
|
@ -5,14 +5,12 @@
|
||||||
"module": "ES2020",
|
"module": "ES2020",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"outDir": "dist",
|
|
||||||
"declarationDir": "dts",
|
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"resolveJsonModule": true
|
"resolveJsonModule": true,
|
||||||
|
"noEmit": true
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue