-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ee8adf
commit e7b7063
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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 | ||
working-directory: ${{ matrix.working-directory }} | ||
run: tsc -p tsconfig.json --noEmit | ||
- name: Lint | ||
run: yarn lint:${{ matrix.working-directory }} |