This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
Fix lexer line continuation and catch invalid escaped sequence #40
Workflow file for this run
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
name: DBML Parser run test & lint | |
on: | |
pull_request: | |
branches: | |
[ "master" ] | |
paths: | |
- packages/parser/**/* | |
env: | |
WORK_DIR: 'packages/parser/' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
env: | |
node-version: 20.x | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node-version }} | |
- name: Setup dependencies | |
working-directory: ${{ env.WORK_DIR }} | |
run: | | |
npm install -g pnpm | |
pnpm install --no-frozen-lockfile | |
- name: Lint code | |
working-directory: ${{ env.WORK_DIR }} | |
run: pnpm lint | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['16.x', '18.x', '20.x'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup dependencies | |
working-directory: ${{ env.WORK_DIR }} | |
run: | | |
npm install -g pnpm | |
pnpm install --no-frozen-lockfile | |
- name: Build parser | |
working-directory: ${{ env.WORK_DIR }} | |
run: pnpm build | |
- name: Run parser tests | |
working-directory: ${{ env.WORK_DIR }} | |
run: pnpm test |