-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (31 loc) · 953 Bytes
/
gradle.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
name: Basic TeeTime Build
on: pull_request
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java: [ 11, 17, 21 ]
fail-fast: false
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.java }} OS ${{ matrix.os }} sample
steps:
- name: Set Git Property and output path
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
git config --system core.longpaths true
fi
shell: bash
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Run Unit Tests
run: ./gradlew test
- name: Upload Unit Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: Unit Test Results (Java ${{ matrix.java }} OS ${{ matrix.os }})
path: '**/build/test-results/test/TEST-*.xml'