Merge pull request #248 from mundialis/renovate/com.google.errorprone… #284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish GeoServer GRASS datastore | |
on: | |
push: | |
branches: | |
- main | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout sources 🔰 | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Set up Java 11 ⏬ | |
uses: actions/[email protected] | |
with: | |
distribution: temurin | |
java-version: 11 | |
java-package: jdk | |
architecture: x64 | |
- name: Handle caching of maven repository 💾 | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Create maven settings.xml with credentials 📜+🔧+🔒 | |
uses: whelk-io/maven-settings-xml-action@v22 | |
with: | |
servers: '[ | |
{ "id": "nexus.terrestris.de", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" }, | |
{ "id": "nexus.terrestris.de-geoserver-extras", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" }, | |
{ "id": "nexus.terrestris.de-snapshots-geoserver-extras", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" } | |
]' | |
- name: Build the datastore with Maven and publish artifacts to nexus 🏗️+🚀 | |
run: mvn -B deploy -DskipTests | |
- name: Analyse code and publish to SonarQube 📊 | |
run: mvn -B -Dsonar.password=${{ secrets.SONAR_PASSWORD }} sonar:sonar |