-
Notifications
You must be signed in to change notification settings - Fork 16
67 lines (57 loc) · 1.96 KB
/
ci_kind.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
name: Helm Chart CI
on:
- pull_request
# - push
# Only run the latest job
concurrency:
group: '${{ github.workflow }} @ ${{ github.ref || github.run_id }}'
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
submodules: recursive
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Install Helm
uses: azure/setup-helm@v4
with:
version: v3.13.3
- name: Setup Bats and Bats libs
uses: bats-core/[email protected]
with:
bats-version: 1.11.0
support-path: ${{ github.workspace }}/tests/test-common/bats-support
assert-path: ${{ github.workspace }}/tests/test-common/bats-assert
detik-install: false
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
node_image: "kindest/node:v1.29.0"
config: ./.github/workflows/ci/kind-config.yaml
cluster_name: chart-testing
- name: Setup Image registry
run: |-
./.github/workflows/ci/setup-image-registry.sh
- name: Setup Nginx Ingress Controller
run: |-
./.github/workflows/ci/setup-nginx-ingress-controller.sh
- name: Modify /etc/hosts
run: |-
sudo echo "127.0.0.1 wildfly.local" | sudo tee -a /etc/hosts
- name: Run Tests
run: |-
cd tests/bats
export IMAGE_REGISTRY=localhost:5001 && export PUSH_TO_REGISTRY=true && export USE_OPENSHIFT=false && export BATS_LIBS_BASEDIR=../test-common && export CLUSTER_CLIENT=kubectl && bats --timing --trace --verbose-run -r .