Skip to content

Commit 4cda989

Browse files
authored
build: upgrade pnpm to 9.7.0 and abandon yarn (#344)
* build: upgrade pnpm to 9.7.0 and abandon yarn * ci: update github ci action * chore: move config to package.json and add keywords * style: prettier format all files
1 parent d7b3bfa commit 4cda989

File tree

16 files changed

+7875
-9732
lines changed

16 files changed

+7875
-9732
lines changed

.czrc

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 56 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,66 @@
11
name: Bug Report
22
description: File a bug report
3-
title: "[Bug]: "
3+
title: '[Bug]: '
44
labels: []
55
body:
6-
- type: markdown
7-
attributes:
8-
value: |
9-
Thanks for taking the time to fill out this bug report!
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
1010
11-
- type: input
12-
id: version
13-
attributes:
14-
label: Version
15-
description: Which version did the problem appear on?
16-
placeholder: v0.0.1
17-
validations:
18-
required: true
11+
- type: input
12+
id: version
13+
attributes:
14+
label: Version
15+
description: Which version did the problem appear on?
16+
placeholder: v0.0.1
17+
validations:
18+
required: true
1919

20-
- type: dropdown
21-
id: sql-type
22-
attributes:
23-
label: Which SQL?
24-
description: Which kind of SQL did the problem appear on?
25-
options:
26-
- MySQL
27-
- Flink
28-
- Spark
29-
- Hive
30-
- Postgre
31-
- Trino
32-
- Impala
33-
- Any Others
34-
validations:
35-
required: true
20+
- type: dropdown
21+
id: sql-type
22+
attributes:
23+
label: Which SQL?
24+
description: Which kind of SQL did the problem appear on?
25+
options:
26+
- MySQL
27+
- Flink
28+
- Spark
29+
- Hive
30+
- Postgre
31+
- Trino
32+
- Impala
33+
- Any Others
34+
validations:
35+
required: true
3636

37-
- type: textarea
38-
id: sql-content
39-
attributes:
40-
label: SQL content
41-
placeholder: SELECT * FROM table;
42-
description: Please provide the minimal SQL text that reproduces the problem.
43-
render: sql
37+
- type: textarea
38+
id: sql-content
39+
attributes:
40+
label: SQL content
41+
placeholder: SELECT * FROM table;
42+
description: Please provide the minimal SQL text that reproduces the problem.
43+
render: sql
4444

45-
- type: textarea
46-
id: js-code
47-
attributes:
48-
label: JavaScript/TypeScript code
49-
description: Please provide the minimal demo code that reproduces the problem.
50-
render: typescript
45+
- type: textarea
46+
id: js-code
47+
attributes:
48+
label: JavaScript/TypeScript code
49+
description: Please provide the minimal demo code that reproduces the problem.
50+
render: typescript
5151

52-
- type: textarea
53-
id: what-happened
54-
attributes:
55-
label: What happened?
56-
description: Also tell us, what did you expect to happen?
57-
placeholder: Tell us what you see!
58-
validations:
59-
required: true
60-
61-
- type: textarea
62-
id: logs
63-
attributes:
64-
label: Relevant log output
65-
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
66-
render: shell
52+
- type: textarea
53+
id: what-happened
54+
attributes:
55+
label: What happened?
56+
description: Also tell us, what did you expect to happen?
57+
placeholder: Tell us what you see!
58+
validations:
59+
required: true
6760

61+
- type: textarea
62+
id: logs
63+
attributes:
64+
label: Relevant log output
65+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
66+
render: shell

.github/ISSUE_TEMPLATE/2_feature_request.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@ description: Suggest an idea for this project
33
title: '[Feature Request]: '
44
labels: []
55
body:
6-
- type: markdown
7-
attributes:
8-
value: |
9-
To help us efficiently reviewing your feature request, please fill out this form.
6+
- type: markdown
7+
attributes:
8+
value: |
9+
To help us efficiently reviewing your feature request, please fill out this form.
1010
11-
- type: dropdown
12-
id: sql-type
13-
attributes:
14-
label: Topic
15-
options:
16-
- Support new SQL
17-
- Support new features on parser
18-
- Enhance existing features
19-
- Documents
20-
- Any Others
21-
validations:
22-
required: true
11+
- type: dropdown
12+
id: sql-type
13+
attributes:
14+
label: Topic
15+
options:
16+
- Support new SQL
17+
- Support new features on parser
18+
- Enhance existing features
19+
- Documents
20+
- Any Others
21+
validations:
22+
required: true
2323

24-
- type: textarea
25-
id: description
26-
attributes:
27-
label: Description
28-
description: Please describe your feature request.
29-
validations:
30-
required: true
24+
- type: textarea
25+
id: description
26+
attributes:
27+
label: Description
28+
description: Please describe your feature request.
29+
validations:
30+
required: true

.github/workflows/ci.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [main, next]
9+
pull_request:
10+
branches: [main, next]
11+
12+
jobs:
13+
check:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [18.x, 20.x]
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Install pnpm
25+
uses: pnpm/action-setup@v4.0.0
26+
with:
27+
version: 9.7.0
28+
29+
- name: Use Node.js ${{ matrix.node-version }}
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: ${{ matrix.node-version }}
33+
cache: 'pnpm'
34+
35+
- name: Install dependencies
36+
run: pnpm install --frozen-lockfile
37+
38+
- name: Run prettier check
39+
run: pnpm prettier-check
40+
41+
- name: Run tsc check
42+
run: pnpm check-types
43+
44+
test:
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
node-version: [18.x, 20.x]
49+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
50+
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4.0.0
57+
with:
58+
version: 9.7.0
59+
60+
- name: Use Node.js ${{ matrix.node-version }}
61+
uses: actions/setup-node@v4
62+
with:
63+
node-version: ${{ matrix.node-version }}
64+
cache: 'pnpm'
65+
66+
- name: Install dependencies
67+
run: pnpm install --frozen-lockfile
68+
69+
- name: Run Units Test
70+
run: pnpm test
71+
72+
build:
73+
runs-on: ubuntu-latest
74+
strategy:
75+
matrix:
76+
node-version: [18.x, 20.x]
77+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
78+
79+
steps:
80+
- name: Checkout
81+
uses: actions/checkout@v4
82+
83+
- name: Install pnpm
84+
uses: pnpm/action-setup@v4.0.0
85+
with:
86+
version: 9.7.0
87+
88+
- name: Use Node.js ${{ matrix.node-version }}
89+
uses: actions/setup-node@v4
90+
with:
91+
node-version: ${{ matrix.node-version }}
92+
cache: 'pnpm'
93+
94+
- name: Install dependencies
95+
run: pnpm install --frozen-lockfile
96+
97+
- name: Run Build
98+
run: pnpm build

0 commit comments

Comments
 (0)