Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

chore: update changelog #35

chore: update changelog

chore: update changelog #35

Workflow file for this run

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