-
Notifications
You must be signed in to change notification settings - Fork 71
65 lines (61 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
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
defaults:
run:
shell: bash --noprofile --norc -Eeuo pipefail {0}
env:
# Use Maven wrapper from repo with Maven version and other configs
MAVEN: ./mvnw -B
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: [22, 23-ea]
timeout-minutes: 20
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Install required Java distribution
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Build with Maven
run: $MAVEN clean verify
- uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64,ppc64le
- name: Build and Test Docker Image
run: docker/build.sh
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.12.1
- uses: actions/setup-python@v5
with:
python-version: '3.10'
check-latest: true
- name: Lint chart
run: helm lint --strict helm/trino-gateway
- name: Create kind cluster
uses: helm/[email protected]
with:
cluster_name: tgw
- name: load images
run: kind load docker-image --name tgw trino-gateway:$(cat ./trino-gateway-version.txt | tr -d '\n')-amd64
- name: Run chart-testing (install)
run: helm install test helm/trino-gateway --set "image.repository=trino-gateway" --set "image.tag=$(cat ./trino-gateway-version.txt | tr -d '\n')-amd64" --set "limits.memory=100Mi" --set "limits.cpu=0"
- name: wait for deployment
#the deployment name is the name of the installation from the helm install command above, concatenated with the name from Chart.yaml
run: kubectl rollout status deployment test-trino-gateway
timeout-minutes: 2