Skip to content

Commit

Permalink
Upgrade CI using java 17 instead java 11 due to sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
arburk committed Nov 16, 2023
1 parent 04c25af commit fd1c3ed
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@main # don't get confused by @master - it is the version of the checkout action. You repo will be checked out with ${{ github.ref }}
uses: actions/checkout@main
- name: Set up JDK 17
uses: actions/setup-java@main
with:
distribution: 'temurin'
java-version: 17
- name: Cache Maven packages
uses: actions/cache@v3
with:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@main

- name: Set up JDK 17
uses: actions/setup-java@main
with:
distribution: 'temurin'
java-version: 17

- name: Cache SonarCloud packages
uses: actions/cache@v3
uses: actions/cache@main
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@main
- name: Set up JDK 17
uses: actions/setup-java@main
with:
distribution: 'temurin'
java-version: 17

- name: Deploy to Github Package Registry
env:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout selected branch (head expected)
uses: actions/checkout@v3
uses: actions/checkout@main
with:
fetch-depth: 0 # Fetch all history for all tags and branches
tagsRefSpec: "+refs/tags/*:refs/tags/*" # Fetch all tags
Expand All @@ -23,6 +23,11 @@ jobs:
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
- name: Set up JDK 17
uses: actions/setup-java@main
with:
distribution: 'temurin'
java-version: 17
- name: Prepare release with Maven
run: mvn -B release:prepare
env:
Expand Down

0 comments on commit fd1c3ed

Please sign in to comment.