swt23w23/.github/workflows/build.yml
Simon Bruder bac025fd0a
Make project REUSE compliant
This finally makes the licensing under AGPL-3.0-or-later explicit after
I got the okay from the kickstart source owners.

This also checks the REUSE compliance in a pre commit hook, and
therefore also in CI.
2023-12-11 17:59:14 +01:00

43 lines
904 B
YAML

# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2021-2023 Martin Morgenstern
# This file is managed by the ST lab crew, please don't change it!
name: CI build
on:
push:
paths-ignore:
- 'src/main/asciidoc/**'
- 'readme.adoc'
env:
MAVEN_OPTS: -Xmx1G
jobs:
build:
name: Build and test
runs-on: self-hosted
steps:
- name: Print version information
run: |
java -version
javac --version
git --version
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build and test with Maven
run: ./mvnw clean verify -Pci -B
- name: Run and publish SonarQube analysis
if: github.ref == 'refs/heads/main'
run: ./mvnw sonar:sonar -B
env:
STLAB_SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
STLAB_SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }}