diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..350cbc5 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,31 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: '11' + cache: 'maven' + - name: Build with Maven + run: mvn -B verify checkstyle:checkstyle --file pom.xml + - name: Upload jar artifact + uses: actions/upload-artifact@v2 + with: + name: ukf-mda-snapshot + path: target/ukf-mda*.jar diff --git a/README.md b/README.md index f9f4617..30b4a18 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # ukf-mda +Update to test PR action trigger + ## UK federation Aggregator Beans This project contains a collection of beans supporting metadata aggregation for the UK federation, based on the [Shibboleth metadata aggregator framework](http://shibboleth.net/products/metadata-aggregator.html).