generated from SpineEventEngine/template
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1009 Bytes
/
build-on-ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build under Ubuntu
on: push
jobs:
build:
name: Build under Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: zulu
cache: gradle
- name: Build project and run tests
shell: bash
run: ./gradlew build --stacktrace
# See: https://github.com/marketplace/actions/junit-report-action
- name: Publish Test Report
uses: mikepenz/[email protected]
if: always() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/**/TEST-*.xml'
require_tests: true # will fail workflow if test reports not found
- name: Upload code coverage report
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true