From 80e077b27496a288587a0101df0dee57baac75f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= Date: Wed, 6 Mar 2024 09:13:30 -0400 Subject: [PATCH] Create TS workflow --- .github/workflows/ts.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ts.yml diff --git a/.github/workflows/ts.yml b/.github/workflows/ts.yml new file mode 100644 index 0000000..6372e4a --- /dev/null +++ b/.github/workflows/ts.yml @@ -0,0 +1,30 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: TypeScript + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + ts: + name: Run ts type-checking + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install TypeScript + run: | + npm i -g typescript@5.3.3 + - name: Run TypeScript + run: tsc --project jsconfig.json