mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Add skjolber/maven-cache-github-action; remove -U from mvn
This commit is contained in:
10
.github/workflows/maven.yml
vendored
10
.github/workflows/maven.yml
vendored
@ -24,6 +24,10 @@ jobs:
|
|||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
- name: Restore Maven cache
|
||||||
|
uses: skjolber/maven-cache-github-action@v1
|
||||||
|
with:
|
||||||
|
step: restore
|
||||||
- name: maven-settings-action
|
- name: maven-settings-action
|
||||||
uses: s4u/maven-settings-action@v2.4.1
|
uses: s4u/maven-settings-action@v2.4.1
|
||||||
with:
|
with:
|
||||||
@ -36,4 +40,8 @@ jobs:
|
|||||||
- name: Cat settings.xml
|
- name: Cat settings.xml
|
||||||
run: cat /home/runner/.m2/settings.xml
|
run: cat /home/runner/.m2/settings.xml
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -U -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
- name: Save Maven cache
|
||||||
|
uses: skjolber/maven-cache-github-action@v1
|
||||||
|
with:
|
||||||
|
step: save
|
||||||
|
Reference in New Issue
Block a user