Skip to content

Workflow file for this run

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:
- uses: actions/checkout@v4
- 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.dir }}
run: npm ci
- name: Check types
working-directory: ${{ matrix.dir }}
run: npx tsc -p ./tsconfig.json --noEmit
- name: Lint
run: yarn lint:${{ matrix.dir }}