Skip to content

Commit 5dacaf0

Browse files
authored
test: Remove Kotlin examples (#2953)
- The Kotlin examples now live in the sqlc-gen-kotlin repository - Run a subset of the tests in the sqlc-gen-kotlin directory
1 parent a334908 commit 5dacaf0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+12
-2897
lines changed

.github/workflows/ci-kotlin.yml

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,22 @@ on:
55
- main
66
pull_request:
77
jobs:
8-
98
build:
109
name: test
1110
runs-on: ubuntu-latest
12-
13-
services:
14-
postgres:
15-
image: postgres:11
16-
env:
17-
POSTGRES_USER: postgres
18-
POSTGRES_PASSWORD: postgres
19-
POSTGRES_DB: postgres
20-
ports:
21-
- 5432:5432
22-
# needed because the postgres container does not provide a healthcheck
23-
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
24-
mysql:
25-
image: mysql:8
26-
env:
27-
MYSQL_ROOT_PASSWORD: mysecretpassword
28-
MYSQL_DATABASE: mysql
29-
ports:
30-
- 3306:3306
31-
3211
steps:
3312
- uses: actions/checkout@v4
34-
- uses: actions/setup-java@v3
13+
- uses: actions/setup-go@v4
3514
with:
36-
distribution: 'adopt'
37-
java-version: '11'
38-
- uses: eskatos/gradle-command-action@v2
39-
env:
40-
PG_USER: postgres
41-
PG_HOST: localhost
42-
PG_DATABASE: postgres
43-
PG_PASSWORD: postgres
44-
PG_PORT: ${{ job.services.postgres.ports['5432'] }}
45-
MYSQL_DATABASE: mysql
46-
MYSQL_HOST: localhost
47-
MYSQL_PORT: ${{ job.services.mysql.ports['3306'] }}
48-
MYSQL_ROOT_PASSWORD: mysecretpassword
15+
go-version: '1.21.3'
16+
- name: install ./...
17+
run: go install ./...
18+
- uses: actions/checkout@v4
4919
with:
50-
build-root-directory: examples/kotlin
51-
wrapper-directory: examples/kotlin
52-
arguments: test --scan
20+
repository: sqlc-dev/sqlc-gen-kotlin
21+
path: kotlin
22+
- run: make test
23+
working-directory: kotlin
24+
- run: sqlc diff
25+
working-directory: kotlin/examples
26+

examples/kotlin/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/kotlin/README.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

examples/kotlin/build.gradle

Lines changed: 0 additions & 34 deletions
This file was deleted.

examples/kotlin/gradle.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.
-53.9 KB
Binary file not shown.

examples/kotlin/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/kotlin/gradlew

Lines changed: 0 additions & 172 deletions
This file was deleted.

examples/kotlin/gradlew.bat

Lines changed: 0 additions & 84 deletions
This file was deleted.

examples/kotlin/settings.gradle

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)