-
Notifications
You must be signed in to change notification settings - Fork 2
85 lines (70 loc) · 2.33 KB
/
Copy pathintegration.yml
File metadata and controls
85 lines (70 loc) · 2.33 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
name: Integration
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
local:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Setup OpenShell
uses: ./.github/actions/setup-openshell
- name: Run local integration
run: |
CGO_ENABLED=0 go build -ldflags '-s -w -X main.version=ci' -o harness ./runner
./test/test-flow.sh local-container
env:
TEST_LOG_FILE: /tmp/test-logs/test-flow-local.log
- name: Run config test suite (with live tests)
run: make test-suite-live
- name: Export logs
if: always()
run: |
mkdir -p /tmp/test-logs
journalctl --user -u openshell-gateway --no-pager > /tmp/test-logs/gateway.log 2>/dev/null || true
openshell status > /tmp/test-logs/status.txt 2>&1 || true
openshell gateway list > /tmp/test-logs/gateways.txt 2>&1 || true
- uses: actions/upload-artifact@v7
if: always()
with:
name: test-logs-local
path: /tmp/test-logs/
kind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Setup OpenShell
uses: ./.github/actions/setup-openshell
# install_only: kind-lifecycle.sh creates its own cluster with an
# isolated kubeconfig — only the kind binary is needed here.
- uses: helm/kind-action@v1
with:
install_only: true
- name: Install helm
uses: azure/setup-helm@v5.0.1
- name: Run kind integration
run: make test-kind
env:
CONTAINER_CLI: docker
TEST_LOG_FILE: /tmp/test-logs/test-flow-kind.log
- name: Export logs
if: always()
run: |
mkdir -p /tmp/test-logs
kubectl -n openshell logs statefulset/openshell > /tmp/test-logs/gateway.log 2>/dev/null || true
kubectl -n openshell get all > /tmp/test-logs/resources.txt 2>&1 || true
openshell gateway list > /tmp/test-logs/gateways.txt 2>&1 || true
- uses: actions/upload-artifact@v7
if: always()
with:
name: test-logs-kind
path: /tmp/test-logs/