-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 986 Bytes
/
examples.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
39
40
41
42
43
44
45
46
47
# Examples CI workflow
#
# Verifies that the Maven repository is correctly set to be used
# by downstream Java 8 applications.
name: Examples
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
name: Java Examples check
steps:
# Check-out the repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v4
- name: Setup JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
# Check the build
- name: Test the build
run: ./gradlew test
# Upload test artifact
- name: Upload test output
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: test-output
path: |
build/reports/tests/
retention-days: 15
overwrite: true