-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (79 loc) · 2.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
name: CI
on:
workflow_dispatch:
push:
branches-ignore:
- main
jobs:
event-file:
# https://github.com/marketplace/actions/publish-test-results#support-fork-repositories-and-dependabot-branches
name: "Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v3
with:
name: event-file
path: ${{ github.event_path }}
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/setup-java@v3.13.0
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Install Docker on macOS
if: matrix.os == 'macos-latest'
uses: douglascamata/setup-docker-macos-action@v1-alpha
- 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: Set up Go
if: matrix.os == 'windows-latest'
uses: actions/setup-go@v4
with:
go-version: 1.17
- name: debug dns issues on Windows
if: matrix.os == 'windows-latest'
run: |
nslookup registry-1.docker.io
curl -v https://registry-1.docker.io/
curl -v https://registry-1.docker.io/v2/
curl -v --head https://registry-1.docker.io/v2/gesellix/echo-server/manifests/os-windows
go run .github/check.go
- 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
# https://github.com/marketplace/actions/publish-test-results#support-fork-repositories-and-dependabot-branches
if: always()
uses: actions/upload-artifact@v3
with:
name: Test Results (Java ${{ matrix.java }} on ${{ matrix.os }})
path: '**/build/test-results/test/TEST-*.xml'
...