Skip to content

Commit

Permalink
github: Upgrade GitHub actions JDK and syntax fixes (#165)
Browse files Browse the repository at this point in the history
* Upgrade GitHub actions JDK and syntax fixes

* change distribution

* change distribution
  • Loading branch information
maorohana-redis authored Jan 28, 2023
1 parent 5242527 commit 43e87cd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
- name: Autobuild
uses: github/codeql-action/autobuild@v2

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
key: om-${{hashFiles('**/pom.xml')}}

- name: Set up JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 17
distribution: 'zulu'
- run: mvn dependency:go-offline
- name: Build
run: mvn clean process-test-classes verify
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:
path: |
~/.mv2/repository
key: om-${{hashFiles('**/pom.xml')}}
- name: Set up JDK 11
uses: actions/setup-java@v1
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
java-version: 17
distribution: 'zulu'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- run: mvn dependency:go-offline
run: mvn integration-test
- run: mvn integration-test
- run: mvn cobertura:cobertura
- name: codecov
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/version-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- name: Set up publishing to maven central
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
java-version: 17
distribution: 'zulu'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down

0 comments on commit 43e87cd

Please sign in to comment.