From 101e8d4735d22d1dcf8f3011f88c7bd4294a5e40 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Mon, 8 Aug 2022 10:36:26 -0400 Subject: [PATCH] Test TS types in CI Signed-off-by: Matthew Peveler --- .github/workflows/ci.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcac08f..7ecfb7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,7 @@ name: CI on: [push, pull_request] jobs: - build: + test: strategy: fail-fast: false matrix: @@ -33,3 +33,21 @@ jobs: run: set DEBUG=* - run: npm test + + test-types: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Install typescript + run: npm install --save-dev typescript + + - run: node_modules/.bin/tsc lib/portfinder.d.ts