-
Notifications
You must be signed in to change notification settings - Fork 7
71 lines (71 loc) · 1.86 KB
/
gradle.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
name: Java CI
on: [push]
env: # Set the secret as an input
docker_username: ${{ secrets. docker_username }}
docker_password: ${{ secrets. docker_password }}
jobs:
Clone-down:
name: Clone down repo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Upload Repo
uses: actions/upload-artifact@v1
with:
name: code
path: .
Test:
runs-on: ubuntu-latest
needs: [Clone-down]
steps:
- name: Download code
uses: actions/download-artifact@v1
with:
name: code
path: .
- name: Test with Gradle
run: bash ci/unit-test-app.sh
Build:
runs-on: ubuntu-latest
needs: [Clone-down]
steps:
- name: Download code
uses: actions/download-artifact@v1
with:
name: code
path: .
- name: Build with Gradle
run: bash ci/build-app.sh
- name: Upload Repo
uses: actions/upload-artifact@v1
with:
name: code
path: .
Docker-image:
runs-on: [ubuntu-latest]
needs: [Build,Test]
steps:
- name: Download code
uses: actions/download-artifact@v1
with:
name: code
path: .
- name: lint dockerfile
run: bash ci/lint-dockerfile.sh
- name: build docker
run: export GIT_COMMIT="GA-$GITHUB_SHA" && bash ci/build-docker.sh
- name: push docker
run: export GIT_COMMIT="GA-$GITHUB_SHA" && bash ci/push-docker.sh
System-test:
runs-on: [ubuntu-latest]
needs: [Docker-image]
steps:
- name: Download code
uses: actions/download-artifact@v1
with:
name: code
path: .
- name: Execute component test
run: GIT_COMMIT="GA-$GITHUB_SHA" && bash ci/component-test.sh
- name: Execute performance test
run: GIT_COMMIT="GA-$GITHUB_SHA" && bash ci/performance-test.sh