From fa5b84de1799af34f82ff1444714c326727f7089 Mon Sep 17 00:00:00 2001 From: Robert Kozik Date: Wed, 17 Jan 2024 22:24:16 +0100 Subject: [PATCH] WIP --- .github/workflows/static-checks.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/static-checks.yml diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml new file mode 100644 index 000000000..ef9452b11 --- /dev/null +++ b/.github/workflows/static-checks.yml @@ -0,0 +1,31 @@ +name: Test TypeScript and Lint +on: + pull_request: + merge_group: + branches: + - main + push: +jobs: + check: + runs-on: ubuntu-latest + strategy: + matrix: {dir: ['parser']} + concurrency: + group: typescript-${{ matrix.dir }}-${{ github.ref }} + cancel-in-progress: true + steps: + + - name: Use Node.js 18 + uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Install root node dependencies + run: yarn + - name: Install ${{ matrix.dir }} app node dependencies + if: ${{ matrix.dir != 'example' }} + working-directory: ./${{ matrix.working-directory }} + run: npm ci + - name: Check types + run: npx tsc -p ./${{ matrix.working-directory }}/tsconfig.json --noEmit + - name: Lint + run: yarn lint:${{ matrix.working-directory }}