-
Notifications
You must be signed in to change notification settings - Fork 2
90 lines (74 loc) · 2.55 KB
/
Copy pathintegration.yaml
File metadata and controls
90 lines (74 loc) · 2.55 KB
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
89
90
name: Tests (Integration)
# ------------------------------------------------------------------------------
# Workflow Settings
# ------------------------------------------------------------------------------
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
debug:
description: "Enable verbose test output (V=1)"
required: false
type: boolean
default: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
env:
CARGO_TERM_COLOR: always
CONTAINER_ENGINE: docker
KIND_CLUSTER_NAME: ci
V: ${{ inputs.debug && '1' || '' }}
OPERATOR_IMAGE: praxis-operator:dev
PRAXIS_IMAGE: ghcr.io/praxis-proxy/praxis:0.3.1
jobs:
# ---------------------------------------------------------------------------
# Integration tests (KIND + operator)
# ---------------------------------------------------------------------------
test:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Login to GHCR
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Install stable Rust
uses: dtolnay/rust-toolchain@10c3493d811a9096cee4fdf287e41e852f6a51ba # 1.94.0
- name: Cache Cargo registry and build artifacts
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
target
key: ${{ runner.os }}-rust-1.94.0-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-1.94.0-cargo-
save-always: true
- name: Build operator image
run: docker build -t ${{ env.OPERATOR_IMAGE }} -f Containerfile .
- name: Pull praxis image
run: docker pull ${{ env.PRAXIS_IMAGE }}
- name: Install KIND
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Setup KIND cluster
run: bash hack/setup-kind.sh
- name: Integration tests
run: make dev-integration
- name: Debug cluster state
if: failure()
run: bash hack/dump-debug.sh