-
Notifications
You must be signed in to change notification settings - Fork 11
65 lines (59 loc) · 1.96 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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build --continue --no-daemon
- uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ matrix.os }}-test-reports
path: build/test-results/**/*.xml
kubernetes-integration-tests:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'gradle'
- uses: engineerd/setup-kind@aa272fe2a7309878ffc2a81c56cfe3ef108ae7d0 #v0.5.0
with:
version: v0.11.1
- name: Step up cluster
run: |
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/previous/v0.27.3/release.yaml
kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/previous/v0.16.0/release.yaml
kubectl create ns testns
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Play integration tests
run: ./gradlew integrationTest
- uses: actions/upload-artifact@v3
if: always()
with:
name: linux-integration-test-reports
path: build/reports