Skip to content

Commit

Permalink
Update Github Workflows
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Huulivoide committed Sep 5, 2024
1 parent c70c685 commit 979e0e2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
push_to_registry:
needs: run_java_tests
name: Build & Push Docker image to Docker Hub
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-renovatebot-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
uses: actions/checkout@v4

- name: Validate
uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.0.1
uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.0
with:
config_file_path: .github/renovate.json5
11 changes: 4 additions & 7 deletions .github/workflows/generate-jooq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
generate-jooq:
name: Verifies whether generated jooq classes have been updated
# These must run on ubuntu 22.04 or older.
# The MS SQL server used by jore4-jore3-importer,
# does not run on Linux kernels newer than 6.6.x.
runs-on: ubuntu-22.04

steps:
Expand All @@ -26,13 +29,7 @@ jobs:
java-package: jdk
architecture: x64
distribution: temurin

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
cache: maven

- name: Run jooq class generation
run: ./development.sh generate:jooq --no-volume
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/java-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
run-tests:
name: Run java tests
# These must run on ubuntu 22.04 or older.
# The MS SQL server used by jore4-jore3-importer,
# does not run on Linux kernels newer than 6.6.x.
runs-on: ubuntu-22.04

steps:
Expand All @@ -25,13 +28,7 @@ jobs:
java-package: jdk
architecture: x64
distribution: temurin

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
cache: maven

- name: Verify whether test mssql db is up
uses: HSLdevcom/jore4-tools/github-actions/healthcheck@healthcheck-v1
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/spotless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
spotless:
name: Check code is formatted with Spotless
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout code
Expand All @@ -19,13 +19,7 @@ jobs:
java-package: jdk
architecture: x64
distribution: temurin

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
cache: maven

- name: Run Spotless Check
run: mvn spotless:check

0 comments on commit 979e0e2

Please sign in to comment.