Add GitHub workflow for regular build #2
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
# | |
# Copyright (c) Siemens AG 2019-2025 ALL RIGHTS RESERVED | |
# | |
name: build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: gradle:8.12.1-jdk8 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: versions | |
run: | | |
echo PATH=${PATH} | |
git --version | |
echo JAVA_HOME=${JAVA_HOME} | |
java -version | |
gradle --version | |
gradle javaToolchains | |
- name: build | |
run: | | |
gradle --warning-mode all --no-daemon clean build | |
- name: codecov | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
run: | | |
curl -LsS --output codecov.sh https://codecov.io/bash | |
chmod a+x codecov.sh | |
bash ./codecov.sh -t ${CODECOV_TOKEN} -s build/reports/jacoco/test |