Skip to content

Commit

Permalink
Upgrade GitHub actions (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
theigl authored Nov 15, 2022
1 parent 56cbeff commit d7b4551
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 26 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,42 @@ jobs:
PUBLISH_ARTIFACTS: true

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'

- name: Build with JDK 11
run: mvn -B install --no-transfer-progress -DskipTests

- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: 8
- name: Test with JDK 8
run: mvn -v && mvn -B test

- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Test with JDK 11
run: mvn -v && mvn -B test

- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Test with JDK 17
run: mvn -v && mvn -B test

- name: Set up settings.xml for Sonatype
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: 8

- name: Publish SNAPSHOT version to Sonatype (we can skip tests, since we only deploy, if the build workflow succeeded)
run: mvn -v && mvn -B -P requireSnapshot --no-transfer-progress -DskipTests deploy --settings build/settings-sonatype.xml
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/pr-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,33 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'

- name: Build with JDK 11
run: mvn -B install --no-transfer-progress -DskipTests

- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'temurin'
java-version: 8
- name: Test with JDK 8
run: mvn -v && mvn -B test

- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Test with JDK 11
run: mvn -v && mvn -B test

- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Test with JDK 17
run: mvn -v && mvn -B test

0 comments on commit d7b4551

Please sign in to comment.