Skip to content

Commit

Permalink
updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-kuba committed Jan 6, 2023
1 parent 72e7940 commit 71c665a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,15 @@ on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]
name: Java ${{ matrix.java }} build
name: Java 17 test build
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
- name: "Check out code"
uses: actions/checkout@v3
- name: "Set up JDK"
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-jdk${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-jdk${{ matrix.java }}-
- name: Build with Maven
java-version: 17
distribution: "zulu"
cache: 'maven'
- name: "Build with Maven"
run: mvn -B clean install
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: "Set up JDK"
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: 17
distribution: "zulu"
- name: "Cache"
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'
- name: "Compile and package"
run: mvn -B clean deploy
env:
Expand Down

0 comments on commit 71c665a

Please sign in to comment.