Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: mvn cach #822

Merged
merged 4 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 29 additions & 13 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Maven

name: Maven
on:
workflow_call:
inputs:
Expand All @@ -8,20 +7,37 @@ on:
required: true
default: 'package'
type: string

permissions:
contents: read
packages: write

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: whelk-io/maven-settings-xml-action@v22
with:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- uses: whelk-io/maven-settings-xml-action@v22
with:
servers: '[{ "id":"dvsa-github-packages", "configuration": { "httpHeaders": { "property": { "name":"Authorization", "value":"Bearer ${{ secrets.GITHUB_TOKEN }}"} } } },{ "id":"github-publish", "configuration": { "httpHeaders": { "property": { "name":"Authorization", "value":"Bearer ${{ secrets.GITHUB_TOKEN }}"} } } } ]'
- run: mvn -B -P github ${{ inputs.maven-goal}}


- name: Build with Maven
run: mvn -B -P github ${{ inputs.maven-goal}} -Dmaven.repo.local=$HOME/.m2/repository
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Revision History for the VOL Functional Tests

## [2.40.4](https://github.com/dvsa/vol-functional-tests/compare/v2.40.3...v2.40.4) (2024-09-16)


### Bug Fixes

* type in parent workflow name ([caa564d](https://github.com/dvsa/vol-functional-tests/commit/caa564dfcc3b4e667a134ce4052db3c05f820192))

## [2.40.3](https://github.com/dvsa/vol-functional-tests/compare/v2.41.0...v2.40.3) (2024-09-13)


Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.dvsa.testing.framework</groupId>
<artifactId>vol-functional-tests</artifactId>
<version>2.40.4-SNAPSHOT</version>
<version>2.40.5-SNAPSHOT</version>


<properties>
Expand Down
Loading