-
Notifications
You must be signed in to change notification settings - Fork 8
61 lines (52 loc) · 1.52 KB
/
Copy pathci.yml
File metadata and controls
61 lines (52 loc) · 1.52 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: github-actions
on:
push:
branches:
- '**'
# Release tags are handled by release.yml — ignore them here so the build
# doesn't run twice on a release.
tags-ignore:
- 'graphql-client-*'
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: build
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up JDK 8
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '8'
cache: maven
- name: Build
run: |
java -version
mvn -v
mvn -B clean install
# On a failed build, publish a "Tests" check showing a table of the failed tests
# with their error message and stack trace. Runs only on failure, so a green build
# shows nothing. This is what surfaces WHAT failed and WHY, right in the UI.
- name: Publish test results
if: failure()
uses: mikepenz/action-junit-report@v5
with:
check_name: Tests
report_paths: '**/target/surefire-reports/TEST-*.xml'
skip_success_summary: true
fail_on_failure: false
- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v6
with:
files: target/site/jacoco/jacoco.xml
fail_ci_if_error: false