Skip to content

Commit 270f7cd

Browse files
committed
Update Github Workflows
* Run on Ubuntu 24.04 or 22.04 for tasks requiring e2e env * Use actions/setup-java build-in cache * Update suzuki-shunsuke/github-action-renovate-config-validator to 1.1.0
1 parent ce954e9 commit 270f7cd

4 files changed

Lines changed: 9 additions & 18 deletions

File tree

.github/workflows/cd.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- run_unit_tests
2222
- check_code_formatting
2323
name: Build & Push docker image to dockerhub
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-24.04
2525
steps:
2626
- name: Checkout code
2727
uses: actions/checkout@v4
@@ -66,6 +66,9 @@ jobs:
6666
- check_code_formatting
6767
- push_to_registry
6868
name: Run e2e tests
69+
# These must run on ubuntu 22.04 or older.
70+
# The MS SQL server used by jore4-jore3-importer,
71+
# does not run on Linux kernels newer than 6.6.x.
6972
runs-on: ubuntu-22.04
7073
steps:
7174
- name: Extract metadata to env variables

.github/workflows/check-renovatebot-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
uses: actions/checkout@v4
1313

1414
- name: Validate
15-
uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.0.1
15+
uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.0
1616
with:
1717
config_file_path: .github/renovate.json5

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
tests:
99
name: Run auth backend tests
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111

1212
steps:
1313
- name: Checkout code
@@ -20,13 +20,7 @@ jobs:
2020
java-package: jdk
2121
architecture: x64
2222
distribution: temurin
23-
24-
- name: Cache Maven packages
25-
uses: actions/cache@v4
26-
with:
27-
path: ~/.m2
28-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
29-
restore-keys: ${{ runner.os }}-m2
23+
cahce: maven
3024

3125
- name: Run tests
3226
run: mvn clean verify -Pall-tests

.github/workflows/ktlint.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
spotless:
88
name: Check code is formatted with ktlint
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-24.04
1010

1111
steps:
1212
- name: Checkout code
@@ -19,13 +19,7 @@ jobs:
1919
java-package: jdk
2020
architecture: x64
2121
distribution: temurin
22-
23-
- name: Cache Maven packages
24-
uses: actions/cache@v4
25-
with:
26-
path: ~/.m2
27-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
28-
restore-keys: ${{ runner.os }}-m2
22+
cahce: maven
2923

3024
- name: Run ktlint Check
3125
run: mvn ktlint:check

0 commit comments

Comments
 (0)