Skip to content

Workflow for external builds #52

Workflow for external builds

Workflow for external builds #52

Workflow file for this run

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