Skip to content

Commit 041096f

Browse files
authored
Update GitHub Actions and driver dependencies (#2283)
NOTE: This PR used AI tools and a human. Updated GitHub Actions and driver dependencies to latest versions GitHub Actions: - actions/cache v3 → v4 - actions/setup-python v4 → v5 - actions/setup-go v3 → v5 - actions/setup-java v3 → v4 - actions/setup-node v3 → v4 - Go test matrix: 1.20/1.21 → 1.21/1.22/1.23 Driver dependencies: - Go: minimum version 1.19 → 1.21 - Python: antlr4-python3-runtime 4.11.1 → 4.13.2 - JDBC: postgresql 42.6.0 → 42.7.4, antlr4 4.12.0 → 4.13.2, commons-text 1.10.0 → 1.12.0, junit 5.9.3 → 5.11.3, testcontainers 1.18.0 → 1.20.4, slf4j 2.0.7 → 2.0.16 - Node.js: pg >=6.0.0 → >=8.0.0, typescript 4.x → 5.7.2, jest 26.x → 29.7.0, eslint 7.x → 9.17.0 These updates address security fixes (postgresql driver), improve compatibility with current language runtimes, and use supported versions of build tooling. modified: .github/workflows/go-driver.yml modified: .github/workflows/installcheck.yaml modified: .github/workflows/jdbc-driver.yaml modified: .github/workflows/nodejs-driver.yaml modified: .github/workflows/python-driver.yaml modified: drivers/golang/go.mod modified: drivers/jdbc/lib/build.gradle.kts modified: drivers/nodejs/package.json modified: drivers/python/pyproject.toml
1 parent 75ce99f commit 041096f

File tree

9 files changed

+27
-30
lines changed

9 files changed

+27
-30
lines changed

.github/workflows/go-driver.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
go-version: [ '1.20', '1.21' ]
15+
go-version: [ '1.21', '1.22', '1.23' ]
1616

1717
defaults:
1818
run:
@@ -25,7 +25,7 @@ jobs:
2525
run: docker compose up -d
2626

2727
- name: Set up Go
28-
uses: actions/setup-go@v3
28+
uses: actions/setup-go@v5
2929
with:
3030
go-version: ${{ matrix.go-version }}
3131

.github/workflows/installcheck.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
echo "PG_COMMIT_HASH=$(git ls-remote https://git.postgresql.org/git/postgresql.git refs/heads/REL_17_STABLE | awk '{print $1}')" >> $GITHUB_ENV
1717
1818
- name: Cache PostgreSQL 17
19-
uses: actions/cache@v3
19+
uses: actions/cache@v4
2020
id: pg17cache
2121
with:
2222
path: ~/pg17

.github/workflows/jdbc-driver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v4
1919

2020
- name: Set up Java
21-
uses: actions/setup-java@v3
21+
uses: actions/setup-java@v4
2222
with:
2323
distribution: 'zulu'
2424
java-version: '17'

.github/workflows/nodejs-driver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: docker compose up -d
2323

2424
- name: Set up Node
25-
uses: actions/setup-node@v3
25+
uses: actions/setup-node@v4
2626
with:
2727
node-version: latest
2828

.github/workflows/python-driver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: docker compose up -d
2323

2424
- name: Set up python
25-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: '3.12'
2828

drivers/golang/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
module github.com/apache/age/drivers/golang
2121

22-
go 1.19
22+
go 1.21
2323

2424
require (
2525
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230321174746-8dcc6526cfb1

drivers/jdbc/lib/build.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ repositories {
3030
}
3131

3232
dependencies {
33-
implementation("org.postgresql:postgresql:42.6.0")
34-
api("org.apache.commons:commons-text:1.10.0")
35-
antlr("org.antlr:antlr4:4.12.0")
33+
implementation("org.postgresql:postgresql:42.7.4")
34+
api("org.apache.commons:commons-text:1.12.0")
35+
antlr("org.antlr:antlr4:4.13.2")
3636

37-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3")
37+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
3838
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
3939
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
4040

41-
testImplementation("org.testcontainers:testcontainers:1.18.0")
42-
testImplementation("org.postgresql:postgresql:42.6.0")
41+
testImplementation("org.testcontainers:testcontainers:1.20.4")
42+
testImplementation("org.postgresql:postgresql:42.7.4")
4343

44-
testImplementation("org.slf4j:slf4j-api:2.0.7")
45-
testImplementation("org.slf4j:slf4j-simple:2.0.7")
44+
testImplementation("org.slf4j:slf4j-api:2.0.16")
45+
testImplementation("org.slf4j:slf4j-simple:2.0.16")
4646
}
4747

4848
tasks.generateGrammarSource {

drivers/nodejs/package.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,19 @@
3030
"author": "Alex Kwak <[email protected]>",
3131
"dependencies": {
3232
"antlr4ts": "^0.5.0-alpha.4",
33-
"pg": ">=6.0.0"
33+
"pg": ">=8.0.0"
3434
},
3535
"devDependencies": {
36-
"@types/jest": "^26.0.20",
37-
"@types/pg": "^7.14.10",
38-
"@typescript-eslint/eslint-plugin": "^4.22.1",
39-
"@typescript-eslint/parser": "^4.22.1",
36+
"@types/jest": "^29.5.14",
37+
"@types/pg": "^8.11.10",
38+
"@typescript-eslint/eslint-plugin": "^8.18.1",
39+
"@typescript-eslint/parser": "^8.18.1",
4040
"antlr4ts-cli": "^0.5.0-alpha.4",
41-
"eslint": "^7.25.0",
42-
"eslint-config-standard": "^16.0.2",
43-
"eslint-plugin-import": "^2.22.1",
44-
"eslint-plugin-jest": "^24.3.6",
45-
"eslint-plugin-node": "^11.1.0",
46-
"eslint-plugin-promise": "^4.3.1",
47-
"jest": "^26.6.3",
48-
"ts-jest": "^26.5.1",
49-
"typescript": "^4.1.5"
41+
"eslint": "^9.17.0",
42+
"eslint-plugin-import": "^2.31.0",
43+
"eslint-plugin-jest": "^28.10.0",
44+
"jest": "^29.7.0",
45+
"ts-jest": "^29.2.5",
46+
"typescript": "^5.7.2"
5047
}
5148
}

drivers/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ classifiers = [
3737
]
3838
dependencies = [
3939
"psycopg",
40-
"antlr4-python3-runtime==4.11.1",
40+
"antlr4-python3-runtime==4.13.2",
4141
]
4242

4343
[project.urls]

0 commit comments

Comments
 (0)