swt23w23/.github/workflows/build.yml
Simon Bruder fae055e1a7
Remove ignored paths for build workflow
Since we have mandatory status checks enabled for pull requests, this
previously caused this action to not run, in turn reporting “Expected —
Waiting for status to be reported” on any PR that only changes the
ignored files.

This change will likely lead to a minor increase in build volume.
However, considering the fraction of cases in which only those files are
changed, it should be negligible.
2024-01-20 00:38:30 +01:00

40 lines
837 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:
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 }}