-
-
Notifications
You must be signed in to change notification settings - Fork 28
51 lines (51 loc) · 1.46 KB
/
ci.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
48
49
50
51
---
name: CI
on:
workflow_dispatch:
push:
branches-ignore:
- main
jobs:
ci-build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
java: [ 8, 17 ]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: Install Docker on macOS
if: matrix.os == 'macos-latest'
uses: ./.github/actions/docker-install-macos
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: docker version
run: docker version
- name: docker info
run: docker info
- name: java version
run: java -version
# - name: Debug
# run: ./gradlew checkDockerClient --info --stacktrace
- name: clean build
run: ./gradlew clean build --info --stacktrace
- name: Upload Test Results
# see publish-test-results.yml for workflow that publishes test results without security issues for forks
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: test-results
path: '**/build/test-results/test/TEST-*.xml'
...