-
Notifications
You must be signed in to change notification settings - Fork 32
88 lines (84 loc) · 3.46 KB
/
minikube.yaml
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
name: Minikube Tests
on:
pull_request:
branches: [ main ]
jobs:
wait-for-images:
runs-on: ubuntu-latest
steps:
- name: Wait for Images
run: |
while true
do
if ! docker pull quay.io/redhat-appstudio/pull-request-builds:jvmbuildrequestp-${{ github.event.pull_request.head.sha }} ; then
echo "Failed to pull image 1"
sleep 10
continue
fi
if ! docker pull quay.io/redhat-appstudio/pull-request-builds:jvmcache-${{ github.event.pull_request.head.sha }} ; then
echo "Failed to pull image 2"
sleep 10
continue
fi
if ! docker pull quay.io/redhat-appstudio/pull-request-builds:jvmcontroller-${{ github.event.pull_request.head.sha }} ; then
echo "Failed to pull image 3"
sleep 10
continue
fi
exit 0
done
run-gav-based-tests:
strategy:
fail-fast: false
matrix:
testsets:
- "test-repos"
- "build-systems"
- "commons"
needs: [wait-for-images]
runs-on: ubuntu-latest
name: Minikube GAV Matrix
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
with:
android: true
dotnet: true
haskell: true
docker-images: false
large-packages: false
swap-storage: false
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- name: Setup Registry
run: |
export DEV_IP=172.16.1.1
sudo ifconfig lo:0 $DEV_IP
docker run -d -p 5000:5000 --restart=always registry:2
sudo echo '{ "insecure-registries": ["172.16.1.1:5000"] }' | sudo tee /etc/docker/daemon.json
- name: Start minikube
uses: medyagh/setup-minikube@317d92317e473a10540357f1f4b2878b80ee7b95 # v0.0.16
with:
cpus: max
memory: max
insecure-registry: '172.16.1.1:5000'
- name: Run Tests
run: |
export SHELL=/bin/bash
export QUAY_USERNAME=minikube
export DEV_IP=172.16.1.1
eval $(minikube -p minikube docker-env)
docker pull quay.io/redhat-appstudio/pull-request-builds:jvmbuildrequestp-${{ github.event.pull_request.head.sha }}
docker pull quay.io/redhat-appstudio/pull-request-builds:jvmcache-${{ github.event.pull_request.head.sha }}
docker pull quay.io/redhat-appstudio/pull-request-builds:jvmcontroller-${{ github.event.pull_request.head.sha }}
docker tag quay.io/redhat-appstudio/pull-request-builds:jvmbuildrequestp-${{ github.event.pull_request.head.sha }} quay.io/minikube/hacbs-jvm-build-request-processor:dev
docker tag quay.io/redhat-appstudio/pull-request-builds:jvmcache-${{ github.event.pull_request.head.sha }} quay.io/minikube/hacbs-jvm-cache:dev
docker tag quay.io/redhat-appstudio/pull-request-builds:jvmcontroller-${{ github.event.pull_request.head.sha }} quay.io/minikube/hacbs-jvm-controller:dev
export TESTSET=${{ matrix.testsets }}
./deploy/minikube-ci.sh
make minikube-test
- name: Archive Report
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
if: always()
with:
name: matrix-report-${{ matrix.testsets }}
path: /tmp/jvm-build-service-report