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 ce954e9 commit f312eea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- run_unit_tests
- check_code_formatting
name: Build & Push docker image to dockerhub
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -66,6 +66,9 @@ jobs:
- check_code_formatting
- push_to_registry
name: Run e2e 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:
- name: Extract metadata to env variables
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
10 changes: 2 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
tests:
name: Run auth backend tests
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Checkout code
Expand All @@ -20,13 +20,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
cahce: maven

- name: Run tests
run: mvn clean verify -Pall-tests
10 changes: 2 additions & 8 deletions .github/workflows/ktlint.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 ktlint
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
cahce: maven

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

0 comments on commit f312eea

Please sign in to comment.