[pull] develop from datengaertnerei:develop #352
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
# This workflow will build a Java project with Maven | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
name: maven-merge-check | |
on: | |
pull_request: | |
permissions: read-all | |
jobs: | |
build: | |
name: merge status check | |
runs-on: ubuntu-latest | |
permissions: | |
# required for all workflows | |
security-events: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 | |
with: | |
disable-sudo: true | |
egress-policy: audit #outbound hosts constantly subject to change by action providers | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@6a38de687243566b5f047bc89dac4492eb016f80 | |
with: | |
languages: javascript, python, java | |
- name: Build with Maven | |
run: | | |
export OSM_IMPORT_FILE=https://github.com/datengaertnerei/test-data-service/raw/develop/data/osm-small.pbf | |
./mvnw -B test --file pom.xml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@6a38de687243566b5f047bc89dac4492eb016f80 |