-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (43 loc) · 1.29 KB
/
tests.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
name: Run Tests
on:
workflow_dispatch:
workflow_call:
jobs:
unit-test:
name: Unit tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install dependencies
run: python -m pip install tox
- name: Run tests
run: tox -e unit
integration-test-microk8s:
name: Integration tests (microk8s)
runs-on: ubuntu-24.04
needs:
- unit-test
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: 1.31-strict/stable
juju-channel: 3.6
- name: Run integration tests
run: tox -e build-prerequisites,integration -- --model testing
- name: Get contexts
run: kubectl config view
if: failure()
- name: Get juju status
run: juju status --relations
if: failure()
- name: Get juju logs
run: juju debug-log --replay --include glauth-k8s
if: failure()
- name: Get GLAuth container logs
run: kubectl logs glauth-k8s-0 -c glauth -n testing
if: failure()