forked from EnMasseProject/enmasse
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (61 loc) · 1.81 KB
/
smoke.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
name: PR job
env:
DOCKER_REGISTRY: "localhost:5000"
TAG: "latest"
IMAGE_PULL_POLICY: "IfNotPresent"
DOCKER_ORG: enmasse
KUBERNETES_NAMESPACE: "enmasse-infra"
on: [pull_request]
jobs:
pr_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Clean disk
run: ./.github/scripts/clean_disk.sh
- name: Set version
run: |
echo "::set-env name=VERSION::$(grep "release.version" pom.properties| cut -d'=' -f2)"
- name: Install dependencies
run: ./.github/scripts/install_dep.sh
- uses: actions/setup-go@v2
with:
go-version: '1.13.1'
- run: go version
- name: setup-docker
run: ./.github/scripts/setup_docker.sh
- name: Minikube setup with registry
uses: EnMasseProject/[email protected]
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11.0.2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Setup OLM
run: ./.github/scripts/setup-olm.sh
- name: Build
run: ./.github/scripts/build.sh
- name: Collect logs
if: failure()
run: ./.github/scripts/collectLogs.sh
- name: Upload artifacts
if: failure()
uses: actions/[email protected]
with:
name: unit-test-logs
path: test-logs.zip
- name: Smoke tests
run: ./.github/scripts/smoke_test.sh
- name: OLM tests
run: ./.github/scripts/olm_test.sh
- name: Collect logs
if: failure()
run: ./.github/scripts/collectLogs.sh
- name: Upload artifacts
if: failure()
uses: actions/[email protected]
with:
name: smoke-test-logs
path: test-logs.zip