-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (68 loc) · 2.2 KB
/
ci.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
name: build
on:
- push
- pull_request
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 15
- name: Build
uses: eskatos/gradle-command-action@v1
with:
arguments: build
wrapper-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
- name: Load cluster tools
uses: engineerd/[email protected]
with:
version: v0.11.0
skipClusterCreation: true
- name: Install a newer curl
# Integration tests utilize --retry-all-errors, which is added in curl 7.71.0
run: |
curl -vL https://github.com/moparisthebest/static-curl/releases/download/v7.78.0/curl-amd64 -o /tmp/curl
sudo install /tmp/curl /usr/local/bin/curl
echo "/usr/local/bin" >> $GITHUB_PATH
- name: Run integration tests
uses: eskatos/gradle-command-action@v1
with:
arguments: integrationTest
- name: Login to DockerHub
if: github.ref == 'refs/heads/master'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish
if: github.ref == 'refs/heads/master'
uses: eskatos/gradle-command-action@v1
with:
arguments: publish
wrapper-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
- name: Save test results
if: always()
uses: actions/upload-artifact@v2
with:
name: test results
path: app/build/reports/tests
- name: Save helm lint output
if: always()
uses: actions/upload-artifact@v2
with:
name: helm lint results
path: deployment/build/helm-lint-results.txt
- name: Save integration test output
if: always()
uses: actions/upload-artifact@v2
with:
name: integration-test-logs
path: deployment/build/curl-output.txt