-
Notifications
You must be signed in to change notification settings - Fork 3.1k
183 lines (180 loc) · 7.55 KB
/
test_readme.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
---
name: test_readme
# These test build commands mentioned in various README.md files.
#
# We don't test documentation-only commits.
on: # yamllint disable-line rule:truthy
push: # non-tagged pushes to master
branches:
- master
tags-ignore:
- '*'
paths-ignore:
- '**/*.md'
- './build-bin/*lint'
- ./build-bin/mlc_config.json
pull_request: # pull requests targeted at the master branch.
branches:
- master
paths-ignore:
- '**/*.md'
- './build-bin/*lint'
- ./build-bin/mlc_config.json
jobs:
zipkin-server:
name: zipkin-server/README.md ${{ matrix.name }}
runs-on: ${{ matrix.os }}
# skip commits made by the release plugin
if: "!contains(github.event.head_commit.message, 'maven-release-plugin')"
timeout-minutes: 5
strategy:
matrix:
include: # Not ubuntu as already tested as a part of the docker job
- name: macos
os: macos-14
- name: windows
os: windows-2022
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'zulu' # zulu as it supports a wide version range
java-version: '21' # Most recent LTS
cache: 'maven'
- name: Cache NPM Packages
uses: actions/cache@v4
with:
path: ~/.npm
# yamllint disable-line rule:line-length
key: ${{ runner.os }}-npm-packages-${{ hashFiles('zipkin-lens/package-lock.json') }}
- name: Execute Server Build # command from zipkin-server/README.md
run: ./mvnw --also-make -pl zipkin-server clean package
env:
MAVEN_CONFIG: '-T1C -q --batch-mode -DskipTests'
docker:
runs-on: ubuntu-24.04 # newest available distribution, aka noble
# skip commits made by the release plugin
if: "!contains(github.event.head_commit.message, 'maven-release-plugin')"
timeout-minutes: 10
steps:
- name: Checkout Repository
uses: actions/checkout@v4
# Remove apt repos that are known to break from time to time.
# See https://github.com/actions/virtual-environments/issues/323
- name: Remove broken apt repos
run: |
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`
do sudo rm $apt_file
done
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'zulu' # zulu as it supports a wide version range
java-version: '21' # Most recent LTS
cache: 'maven'
# Don't attempt to cache Docker. Sensitive information can be stolen
# via forks, and login session ends up in ~/.docker. This is ok because
# we publish DOCKER_PARENT_IMAGE to ghcr.io, hence local to the runner.
- name: Cache NPM Packages
uses: actions/cache@v4
with:
path: ~/.npm
# yamllint disable-line rule:line-length
key: ${{ runner.os }}-npm-packages-${{ hashFiles('zipkin-lens/package-lock.json') }}
- name: Build zipkin-server # redundant, but needed for docker/README.md
run: ./mvnw --also-make -pl zipkin-server clean package
env:
MAVEN_CONFIG: '-T1C -q --batch-mode -DskipTests'
- name: docker/README.md - openzipkin/zipkin
run: |
build-bin/docker/docker_build openzipkin/zipkin:test &&
build-bin/docker/docker_test_image openzipkin/zipkin:test &&
docker run --rm --entrypoint=/bin/sh openzipkin/zipkin:test \
-c 'cd BOOT-INF/lib && du -sk *aarch* *x86* *a64*' || true
env:
RELEASE_FROM_MAVEN_BUILD: true
- name: docker/README.md - openzipkin/zipkin-slim
run: |
build-bin/docker/docker_build openzipkin/zipkin-slim:test &&
build-bin/docker/docker_test_image openzipkin/zipkin-slim:test &&
docker run --rm --entrypoint=/bin/sh openzipkin/zipkin-slim:test \
-c 'cd BOOT-INF/lib && du -sk *aarch* *x86* *a64*' || true
env:
DOCKER_TARGET: zipkin-slim
RELEASE_FROM_MAVEN_BUILD: true
- name: docker/test-images/zipkin-ui/README.md
run: |
build-bin/docker/docker_build ${DOCKER_TAG} &&
build-bin/docker/docker_test_image ${DOCKER_TAG}
env:
DOCKER_TAG: openzipkin/zipkin-ui:test
DOCKER_FILE: docker/test-images/zipkin-ui/Dockerfile
RELEASE_FROM_MAVEN_BUILD: true
- name: docker/test-images/zipkin-uiproxy/README.md
run: |
build-bin/docker/docker_build ${DOCKER_TAG} &&
build-bin/docker/docker_test_image ${DOCKER_TAG}
env:
DOCKER_TAG: openzipkin/zipkin-uiproxy:test
DOCKER_FILE: docker/test-images/zipkin-uiproxy/Dockerfile
- name: docker/test-images/zipkin-activemq/README.md
run: |
build-bin/docker/docker_build ${DOCKER_TAG} &&
build-bin/docker/docker_test_image ${DOCKER_TAG}
env:
DOCKER_TAG: openzipkin/zipkin-activemq:test
DOCKER_FILE: docker/test-images/zipkin-activemq/Dockerfile
- name: docker/test-images/zipkin-cassandra/README.md
run: |
build-bin/docker/docker_build ${DOCKER_TAG} &&
build-bin/docker/docker_test_image ${DOCKER_TAG}
env:
DOCKER_TAG: openzipkin/zipkin-cassandra:test
DOCKER_FILE: docker/test-images/zipkin-cassandra/Dockerfile
- name: docker/test-images/zipkin-elasticsearch7/README.md
run: |
build-bin/docker/docker_build ${DOCKER_TAG} &&
build-bin/docker/docker_test_image ${DOCKER_TAG}
env:
DOCKER_TAG: openzipkin/zipkin-elasticsearch7:test
DOCKER_FILE: docker/test-images/zipkin-elasticsearch7/Dockerfile
- name: docker/test-images/zipkin-elasticsearch8/README.md
run: |
build-bin/docker/docker_build ${DOCKER_TAG} &&
build-bin/docker/docker_test_image ${DOCKER_TAG}
env:
DOCKER_TAG: openzipkin/zipkin-elasticsearch8:test
DOCKER_FILE: docker/test-images/zipkin-elasticsearch8/Dockerfile
- name: docker/test-images/zipkin-opensearch2/README.md
run: |
build-bin/docker/docker_build ${DOCKER_TAG} &&
build-bin/docker/docker_test_image ${DOCKER_TAG}
env:
DOCKER_TAG: openzipkin/zipkin-opensearch2:test
DOCKER_FILE: docker/test-images/zipkin-opensearch2/Dockerfile
- name: docker/test-images/zipkin-eureka/README.md
run: |
build-bin/docker/docker_build openzipkin/zipkin-eureka:test &&
build-bin/docker/docker_test_image openzipkin/zipkin-eureka:test
env:
DOCKER_FILE: docker/test-images/zipkin-eureka/Dockerfile
- name: docker/test-images/zipkin-kafka/README.md
run: |
build-bin/docker/docker_build openzipkin/zipkin-kafka:test &&
build-bin/docker/docker_test_image openzipkin/zipkin-kafka:test
env:
DOCKER_FILE: docker/test-images/zipkin-kafka/Dockerfile
- name: docker/test-images/zipkin-mysql/README.md
run: |
build-bin/docker/docker_build openzipkin/zipkin-mysql:test &&
build-bin/docker/docker_test_image openzipkin/zipkin-mysql:test
env:
DOCKER_FILE: docker/test-images/zipkin-mysql/Dockerfile
- name: docker/test-images/zipkin-rabbitmq/README.md
run: |
build-bin/docker/docker_build openzipkin/zipkin-rabbitmq:test &&
build-bin/docker/docker_test_image openzipkin/zipkin-rabbitmq:test
env:
DOCKER_FILE: docker/test-images/zipkin-rabbitmq/Dockerfile