-
Notifications
You must be signed in to change notification settings - Fork 3.1k
72 lines (70 loc) · 2.63 KB
/
test.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
# yamllint --format github .github/workflows/test.yml
---
name: test
# We don't test documentation-only commits.
on:
# We run tests on non-tagged pushes to master that aren't a commit made by the release plugin
push:
tags: ""
branches: master
paths-ignore:
- "**/*.md"
- "charts/**"
# We also run tests on pull requests targeted at the master branch.
pull_request:
branches: master
paths-ignore:
- "**/*.md"
- "charts/**"
jobs:
# test:
# runs-on: ubuntu-20.04 # newest available distribution, aka focal
# if: "!contains(github.event.head_commit.message, 'maven-release-plugin')"
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# with:
# fetch-depth: 0 # full git history for license check
# - name: Cache local Maven repository
# uses: actions/cache@v2
# with:
# path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: ${{ runner.os }}-maven-
# - name: Cache NPM Packages
# uses: actions/cache@v2
# with:
# path: ~/.npm
# key: ${{ runner.os }}-npm-packages-${{ hashFiles('zipkin-lens/package-lock.json') }}
# - name: Test without Docker
# run: build-bin/maven_go_offline && build-bin/test -Ddocker.skip=true
# test_docker:
# runs-on: ubuntu-20.04 # newest available distribution, aka focal
# if: "!contains(github.event.head_commit.message, 'maven-release-plugin')"
# strategy:
# matrix:
# include:
# - name: zipkin-collector-kafka
# - name: zipkin-collector-rabbitmq
# - name: zipkin-storage-cassandra
# - name: zipkin-storage-elasticsearch
# - name: zipkin-storage-mysql-v1
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# with:
# fetch-depth: 1 # -Dlicense.skip=true so we don't need a full clone
# - name: Cache local Maven repository
# uses: actions/cache@v2
# with:
# path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: ${{ runner.os }}-maven-
# # 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: Test with Docker
# run:
# | # configure_test seeds NPM cache, which isn't needed for these tests
# build-bin/maven/maven_go_offline &&
# build-bin/docker/configure_docker &&
# build-bin/test -pl :${{ matrix.name }} --am -Dlicense.skip=true