diff --git a/.github/workflows/tsc.yaml b/.github/workflows/tsc.yaml new file mode 100644 index 0000000..bfc9d7e --- /dev/null +++ b/.github/workflows/tsc.yaml @@ -0,0 +1,24 @@ +name: "Test: Run tsc" + +on: + push: + pull_request: + branches: + - main + workflow_dispatch: + workflow_call: + +jobs: + tests: + runs-on: ubuntu-slim + steps: + - name: Checkout the repository + uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: current + - name: Run npm install + run: npm install + - name: Run npm run check + run: npm run check diff --git a/package.json b/package.json index e47f172..d7b8f29 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "check": "tsc --noEmit --erasableSyntaxOnly --allowImportingTsExtensions", "start": "node --env-file-if-exists=.env ./src/index.ts", - "dev": "npm run check && npm run start", + "dev": "npm run check && npm run start | pino-pretty", "update": "npx npm-check-updates -u" }, "author": "Tierney Cyren ",