-
Notifications
You must be signed in to change notification settings - Fork 25
96 lines (82 loc) · 2.28 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
name: Testing
env:
DOCKER_HUB_ID: ${{ secrets.OHAI_DOCKER_HUB_ID }}
DOCKER_HUB_PASSWORD: ${{ secrets.OHAI_DOCKER_HUB_PASSWORD }}
on:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- README.md
jobs:
unit-test-linux:
name: Linux unit tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Running unit tests
run: make ci/test
test-go-linux-jdk8:
name: Linux unit tests for Go on JDK 8
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: 'gojmx/go.mod'
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Running unit tests
run: make ci/go-test
test-go-linux-jdk11:
name: Linux unit tests for Go on JDK 11
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v4
with:
go-version-file: 'gojmx/go.mod'
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Running unit tests
run: make ci/go-test-jdk11
check-gen-code:
name: Checking generated code
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Checking generated code
run: make ci/check-gen-code
test-build:
name: Test jar compilation
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ env.DOCKER_HUB_ID }}
password: ${{ env.DOCKER_HUB_PASSWORD }}
- name: Build noarch
run: make ci/build