Skip to content

Commit c319ff0

Browse files
authored
Merge pull request #55 from burmanm/dep_upgrades
Update some dependencies
2 parents df39056 + ae0616b commit c319ff0

File tree

4 files changed

+48
-32
lines changed

4 files changed

+48
-32
lines changed

.github/workflows/buildAndDeploy.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,42 +9,51 @@ jobs:
99
name: Build Cass Config Builder Docker Image
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
if: github.event_name == 'pull_request'
1414
with:
1515
ref: ${{ github.event.pull_request.head.sha }}
1616
submodules: true
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
if: github.event_name != 'pull_request'
1919
with:
2020
submodules: true
21-
- name: Login to GitHub Package Registry
22-
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u "${{ github.actor }}" --password-stdin
23-
- name: Setup Buildx
24-
id: buildx
25-
uses: crazy-max/ghaction-docker-buildx@v3
21+
- uses: actions/setup-java@v4
22+
with:
23+
distribution: 'temurin'
24+
java-version: '8'
25+
- name: Login to DockerHub
26+
if: ${{ !env.ACT }}
27+
uses: docker/login-action@v3
28+
with:
29+
registry: ghcr.io
30+
username: ${{ github.actor }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v3
2634
- name: Cache Docker layers
27-
uses: actions/cache@v3
35+
uses: actions/cache@v4
2836
id: cache
2937
with:
3038
path: /tmp/.buildx-cache
3139
key: ${{ runner.os }}-buildx-${{ github.sha }}
3240
restore-keys: |
3341
${{ runner.os }}-buildx-
3442
java-version: 1.8
35-
- name: Run tests
36-
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'datastax/cass-config-builder'
37-
env:
38-
ORG_GRADLE_PROJECT_dockerRegistry: docker.pkg.github.com
39-
ORG_GRADLE_PROJECT_dockerRegistryUsername: ${{ github.actor }}
40-
ORG_GRADLE_PROJECT_dockerRegistryPassword: ${{ secrets.GITHUB_TOKEN }}
41-
uses: eskatos/gradle-command-action@v1
42-
with:
43-
gradle-version: 6.0.1
44-
arguments: test
43+
- name: Setup Gradle
44+
uses: gradle/actions/setup-gradle@v3
45+
- name: Build with Gradle
46+
run: ./gradlew test
4547
- name: Build docker image
4648
env:
4749
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
4850
run: |
4951
export GITHUB_REPO_URL="https://github.com/${{ github.repository }}"
5052
./scripts/build-push-images.sh
53+
- name: Archive build logs
54+
if: ${{ failure() }}
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: gradle-logs
58+
path: build/reports
59+

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ jobs:
1010
name: Release Cass Config Builder
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
with:
1515
submodules: true
1616
- name: Login to DockerHub
17-
run: echo "${{ secrets.DOCKERHUB_PASS }}" | docker login -u "${{ secrets.DOCKERHUB_USER }}" --password-stdin
18-
- name: Setup Buildx
19-
id: buildx
20-
uses: crazy-max/ghaction-docker-buildx@v3
17+
if: ${{ !env.ACT }}
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ secrets.DOCKERHUB_USER }}
21+
password: ${{ secrets.DOCKERHUB_PASS }}
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
2124
- name: Cache Docker layers
22-
uses: actions/cache@v2
25+
uses: actions/cache@v4
2326
id: cache
2427
with:
2528
path: /tmp/.buildx-cache

build.gradle

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ repositories {
4141
name = 'clojars'
4242
url = 'https://repo.clojars.org'
4343
}
44+
maven {
45+
name = 'redhatEA'
46+
url = 'https://maven.repository.redhat.com/earlyaccess/all/'
47+
}
4448
}
4549

4650
sourceCompatibility = 1.8
@@ -88,13 +92,14 @@ configurations {
8892
}
8993

9094
dependencies {
91-
implementation "org.clojure:clojure:1.10.1"
92-
implementation "org.clojure:core.match:0.3.0-alpha5"
93-
implementation "org.clojure:core.memoize:0.5.9"
95+
implementation "org.clojure:clojure:1.11.2"
96+
implementation "org.clojure:core.match:1.1.0"
97+
implementation "org.clojure:core.memoize:1.1.266"
9498
implementation "slingshot:slingshot:0.12.2"
95-
implementation "org.yaml:snakeyaml:1.23"
96-
implementation "cheshire:cheshire:5.8.0"
97-
implementation ("selmer:selmer:1.12.27") { // templating lib
99+
implementation 'org.yaml:snakeyaml:1.33.0.SP1-redhat-00001'
100+
implementation "cheshire:cheshire:5.13.0"
101+
implementation 'commons-codec:commons-codec:1.16.1'
102+
implementation ("selmer:selmer:1.12.59") { // templating lib
98103
exclude module: 'hiccups'
99104
exclude module: 'cheshire'
100105
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'

test/com/datastax/configbuilder/operator_test.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
:definitions-location test-data/definitions-location})
2727
(is false "Malformed input was not detected")
2828
(catch Exception e
29-
(is (= "Unexpected end-of-input within/between Object entries\n at [Source: (StringReader); line: 1, column: 31]"
30-
(.getMessage e))
29+
(is (clojure.string/includes? (.getMessage e) "Unexpected end-of-input within/between Object entries")
3130
"Wrong error thrown"))))
3231
(testing "ensure all files generated"
3332
(sut/make-configs

0 commit comments

Comments
 (0)