Workflow for external builds #52
Workflow file for this run
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: Compliance check and build test | |
on: # defining on which triggers this action should run | |
push: | |
branches: | |
# define on push of which branches should this action be run | |
paths: | |
# define the concrete paths on which a change triggers this action, e.g. backend/** | |
pull_request: # trigger this action also on Pull Requests | |
types: [ opened, reopened ] | |
jobs: | |
compliance: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Advance Security Policy as Code | |
uses: advanced-security/policy-as-code@v2.7.1 | |
with: | |
policy: it-at-m/policy-as-code | |
policy-path: default.yaml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
argvs: "--disable-dependabot --disable-secret-scanning --disable-code-scanning --display" | |
build-maven: | |
needs: compliance | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
cache: "maven" | |
- name: Build with Maven | |
run: mvn --update-snapshots -f pom.xml verify |