feat: update alter and drop statements (#94)
* feat: add UNIQUE keyword * feat: support ifExist, addConstraint, dropConstraint and addUnique of alter table statement * feat: support ifExist, addConstraint, dropConstraint and addUnique of alter table statement * tests: add tests of alter statements * docs: add comments for sql syntax * build: optimize promote of build/antlr4 * ci: add max_old_space_size * ci: add max_old_space_size * ci: update tests script
This commit is contained in:
32
.github/workflows/nodejs.yml
vendored
32
.github/workflows/nodejs.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: cache yarn.lock
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
@ -49,7 +49,7 @@ jobs:
|
||||
needs: [setup]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: Restore cache from yarn.lock
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
@ -61,21 +61,17 @@ jobs:
|
||||
with:
|
||||
path: node_modules
|
||||
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}
|
||||
|
||||
- name: Test utils
|
||||
run: npx jest test/utils
|
||||
- name: Test FLinkSQL
|
||||
run: npx jest test/parser/flinksql
|
||||
- name: Test SparkSQL
|
||||
run: npx jest test/parser/spark
|
||||
- name: Test GenericSQL
|
||||
run: npx jest test/parser/generic
|
||||
- name: Test HiveSQL
|
||||
run: npx jest test/parser/hive
|
||||
- name: Test PGSQL
|
||||
run: npx jest test/parser/pgsql
|
||||
- name: Test PLSQL
|
||||
run: npx jest test/parser/plsql
|
||||
|
||||
- name: Run Units Test
|
||||
run: |
|
||||
export NODE_OPTIONS="--max_old_space_size=4096"
|
||||
npx jest test/utils
|
||||
npx jest test/parser/flinksql
|
||||
npx jest test/parser/spark
|
||||
npx jest test/parser/generic
|
||||
npx jest test/parser/hive
|
||||
npx jest test/parser/pgsql
|
||||
npx jest test/parser/plsql
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [setup]
|
||||
@ -95,4 +91,4 @@ jobs:
|
||||
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}
|
||||
|
||||
- name: Run Build
|
||||
run: yarn build
|
||||
run: yarn build
|
||||
|
Reference in New Issue
Block a user