Skip to content

Commit 2c822c6

Browse files
committed
all under internal/integration
1 parent d127036 commit 2c822c6

File tree

16 files changed

+30
-42
lines changed

16 files changed

+30
-42
lines changed

.github/workflows/integration.yml renamed to .github/workflows/client.yml

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: integration
1+
name: client
22
on:
33
push:
44
paths-ignore:
@@ -56,18 +56,18 @@ jobs:
5656
QUERYX_ENV: test
5757
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/queryx_test?sslmode=disable
5858
run: |
59-
cd internal/integration
59+
cd internal/integration/client
6060
queryx db:migrate --schema postgresql.hcl
6161
queryx db:migrate --schema postgresql.hcl
6262
queryx generate --schema postgresql.hcl
6363
- name: golangci-lint
6464
uses: golangci/golangci-lint-action@v3
6565
with:
6666
args: --timeout=3m
67-
working-directory: internal/integration/db
67+
working-directory: internal/integration/client/db
6868
- name: go test
6969
run: |
70-
cd internal/integration
70+
cd internal/integration/client
7171
go test -v ./...
7272
postgresql-typescript:
7373
needs: [build]
@@ -98,21 +98,17 @@ jobs:
9898
QUERYX_ENV: test
9999
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/queryx_test?sslmode=disable
100100
run: |
101-
cd internal/integration
101+
cd internal/integration/client
102102
queryx db:migrate --schema postgresql.hcl
103103
queryx generate --schema postgresql.hcl
104104
- name: yarn install
105105
run: |
106-
cd internal/integration
106+
cd internal/integration/client
107107
yarn install
108108
- name: yarn test
109109
run: |
110-
cd internal/integration
110+
cd internal/integration/client
111111
yarn test
112-
# - name: yarn tsc
113-
# run: |
114-
# cd internal/integration
115-
# yarn tsc
116112
mysql-golang:
117113
needs: [build]
118114
runs-on: ubuntu-latest
@@ -142,18 +138,18 @@ jobs:
142138
QUERYX_ENV: test
143139
DATABASE_URL: mysql://root:@localhost:3306/queryx_test
144140
run: |
145-
cd internal/integration
141+
cd internal/integration/client
146142
queryx db:migrate --schema mysql.hcl
147143
queryx db:migrate --schema mysql.hcl
148144
queryx generate --schema mysql.hcl
149145
- name: golangci-lint
150146
uses: golangci/golangci-lint-action@v3
151147
with:
152148
args: --timeout=3m
153-
working-directory: internal/integration/db
149+
working-directory: internal/integration/client/db
154150
- name: go test
155151
run: |
156-
cd internal/integration
152+
cd internal/integration/client
157153
go test -v ./...
158154
mysql-typescript:
159155
needs: [build]
@@ -184,21 +180,17 @@ jobs:
184180
QUERYX_ENV: test
185181
DATABASE_URL: mysql://root:@localhost:3306/queryx_test
186182
run: |
187-
cd internal/integration
183+
cd internal/integration/client
188184
queryx db:migrate --schema mysql.hcl
189185
queryx generate --schema mysql.hcl
190186
- name: yarn install
191187
run: |
192-
cd internal/integration
188+
cd internal/integration/client
193189
yarn install
194190
- name: yarn test
195191
run: |
196-
cd internal/integration
192+
cd internal/integration/client
197193
yarn test
198-
# - name: yarn tsc
199-
# run: |
200-
# cd internal/integration
201-
# yarn tsc
202194
sqlite-golang:
203195
needs: [build]
204196
runs-on: ubuntu-latest
@@ -214,18 +206,18 @@ jobs:
214206
QUERYX_ENV: test
215207
DATABASE_URL: sqlite:test.sqlite3
216208
run: |
217-
cd internal/integration
209+
cd internal/integration/client
218210
queryx db:migrate --schema sqlite.hcl
219211
queryx db:migrate --schema sqlite.hcl
220212
queryx generate --schema sqlite.hcl
221213
- name: golangci-lint
222214
uses: golangci/golangci-lint-action@v3
223215
with:
224216
args: --timeout=3m
225-
working-directory: internal/integration/db
217+
working-directory: internal/integration/client/db
226218
- name: go test
227219
run: |
228-
cd internal/integration
220+
cd internal/integration/client
229221
go test -v ./...
230222
sqlite-typescript:
231223
needs: [build]
@@ -242,18 +234,14 @@ jobs:
242234
QUERYX_ENV: test
243235
DATABASE_URL: sqlite:test.sqlite3
244236
run: |
245-
cd internal/integration
237+
cd internal/integration/client
246238
queryx db:migrate --schema sqlite.hcl
247239
queryx generate --schema sqlite.hcl
248240
- name: yarn install
249241
run: |
250-
cd internal/integration
242+
cd internal/integration/client
251243
yarn install
252244
- name: yarn test
253245
run: |
254-
cd internal/integration
246+
cd internal/integration/client
255247
yarn test
256-
# - name: yarn tsc
257-
# run: |
258-
# cd internal/integration
259-
# yarn tsc

.github/workflows/migrate.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ jobs:
3232
- run: chmod a+x /usr/local/bin/queryx
3333
- name: migrate
3434
run: |
35-
cd internal/migrate
35+
cd internal/integration/migrate
3636
queryx db:migrate --schema sqlite1.hcl
3737
- name: sleep
3838
run: sleep 1 # so the generated migration files have non-conflicting filenames
3939
- name: migrate again
4040
run: |
41-
cd internal/migrate
41+
cd internal/integration/migrate
4242
queryx db:migrate --schema sqlite2.hcl
4343
- name: test
4444
run: |
45-
cd internal/migrate
45+
cd internal/integration/migrate
4646
sqlite3 test.sqlite3 "insert into users(name, email) values('test', '[email protected]')"
4747
postgresql:
4848
needs: [build]
@@ -73,13 +73,13 @@ jobs:
7373
- run: chmod a+x /usr/local/bin/queryx
7474
- name: migrate
7575
run: |
76-
cd internal/migrate
76+
cd internal/integration/migrate
7777
queryx db:migrate --schema postgresql1.hcl
7878
- name: sleep
7979
run: sleep 1
8080
- name: migrate again
8181
run: |
82-
cd internal/migrate
82+
cd internal/integration/migrate
8383
queryx db:migrate --schema postgresql2.hcl
8484
- name: test
8585
run: |
@@ -113,13 +113,13 @@ jobs:
113113
- run: chmod a+x /usr/local/bin/queryx
114114
- name: migrate
115115
run: |
116-
cd internal/migrate
116+
cd internal/integration/migrate
117117
queryx db:migrate --schema mysql1.hcl
118118
- name: sleep
119119
run: sleep 1
120120
- name: migrate again
121121
run: |
122-
cd internal/migrate
122+
cd internal/integration/migrate
123123
queryx db:migrate --schema mysql2.hcl
124124
- name: test
125125
run: |

.github/workflows/postgresql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: integration/postgresql
1+
name: postgresql
22
on:
33
push:
44
paths-ignore:

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
QUERYX_ENV: test
2222
DATABASE_URL: sqlite:test.sqlite3
2323
run: |
24-
cd internal/integration
24+
cd internal/integration/client
2525
..\..\queryx.exe db:migrate --schema sqlite.hcl
2626
..\..\queryx.exe db:migrate --schema sqlite.hcl
2727
..\..\queryx.exe generate --schema sqlite.hcl
2828
- name: go test
2929
run: |
30-
cd internal/integration
30+
cd internal/integration/client
3131
go test -v ./...

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
internal/integration/db
1+
internal/integration/client/db
22
internal/integration/postgresql/db
33
internal/migrate/db
44
node_modules
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)