ci: sets supported JDK range explicitly to 11,15 #322
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yamllint --format github .github/workflows/readme_test.yml | |
--- | |
name: readme_test | |
# These test build commands mentioned in various README.md files. | |
# | |
# This doesn't literally scrape the README.md, so we don't test documentation-only commits. | |
on: | |
# We run tests on only on pull requests targeted at the master branch. | |
# * This skips master pushes as it is rare things not done in PRs break, and conserves resources | |
pull_request: | |
branches: master | |
paths-ignore: | |
- "**/*.md" | |
- "charts/**" | |
jobs: | |
zipkin-server: | |
name: zipkin-server/README.md ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: # ubuntu is tested as a part of the docker job | |
- name: macos | |
os: macos-latest | |
- name: windows | |
os: windows-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' # zulu as it supports a wide version range | |
java-version: '17' # most recent LTS we support | |
- name: Cache NPM Packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-packages-${{ hashFiles('zipkin-lens/package-lock.json') }} | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: Execute Server Build # command from zipkin-server/README.md | |
run: ./mvnw -T1C -q --batch-mode -DskipTests --also-make -pl zipkin-server clean package | |
docker: | |
runs-on: ubuntu-22.04 # newest available distribution, aka jellyfish | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
# 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: '17' # most recent LTS we support | |
# We can't cache Docker without using buildx because GH actions restricts /var/lib/docker | |
# That's ok because DOCKER_PARENT_IMAGE is always ghcr.io and local anyway. | |
- name: Cache NPM Packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-npm-packages-${{ hashFiles('zipkin-lens/package-lock.json') }} | |
- name: Cache local Maven repository | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: zipkin-server/README.md # Tests the build which is re-used for a few images | |
run: ./mvnw -T1C -q --batch-mode -DskipTests --also-make -pl zipkin-server clean package | |
- name: docker/README.md - openzipkin/zipkin | |
run: | | |
build-bin/docker/docker_build openzipkin/zipkin:test && | |
build-bin/docker/docker_test_image openzipkin/zipkin:test | |
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 | |
env: | |
DOCKER_TARGET: zipkin-slim | |
RELEASE_FROM_MAVEN_BUILD: true | |
- name: docker/test-images/zipkin-ui/README.md | |
run: | | |
build-bin/docker/docker_build openzipkin/zipkin-ui:test && | |
build-bin/docker/docker_test_image openzipkin/zipkin-ui:test | |
env: | |
DOCKER_FILE: docker/test-images/zipkin-ui/Dockerfile | |
RELEASE_FROM_MAVEN_BUILD: true | |
- name: docker/test-images/zipkin-cassandra/README.md | |
run: | | |
build-bin/docker/docker_build openzipkin/zipkin-cassandra:test && | |
build-bin/docker/docker_test_image openzipkin/zipkin-cassandra:test | |
env: | |
DOCKER_FILE: docker/test-images/zipkin-cassandra/Dockerfile | |
- name: docker/test-images/zipkin-elasticsearch6/README.md | |
run: | | |
build-bin/docker/docker_build openzipkin/zipkin-elasticsearch6:test && | |
build-bin/docker/docker_test_image openzipkin/zipkin-elasticsearch6:test | |
env: | |
DOCKER_FILE: docker/test-images/zipkin-elasticsearch6/Dockerfile | |
- name: docker/test-images/zipkin-elasticsearch7/README.md | |
run: | | |
build-bin/docker/docker_build openzipkin/zipkin-elasticsearch7:test && | |
build-bin/docker/docker_test_image openzipkin/zipkin-elasticsearch7:test | |
env: | |
DOCKER_FILE: docker/test-images/zipkin-elasticsearch7/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 |