-
Notifications
You must be signed in to change notification settings - Fork 10
60 lines (56 loc) · 1.83 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
55
56
57
58
59
60
name: Test Suite for CoreDNS
on:
- pull_request
jobs:
call-inclusive-naming-check:
name: Inclusive naming
uses: canonical-web-and-design/Inclusive-naming/.github/workflows/woke.yaml@main
with:
fail-on-error: "true"
lint-unit:
name: Lint Unit
uses: charmed-kubernetes/workflows/.github/workflows/lint-unit.yaml@main
needs:
- call-inclusive-naming-check
with:
python: "['3.10']"
integration-test:
name: VSphere Integration Test
runs-on: self-hosted
timeout-minutes: 90
needs:
- lint-unit
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: vsphere
credentials-yaml: ${{ secrets.CREDENTIALS_YAML }}
clouds-yaml: ${{ secrets.CLOUDS_YAML }}
bootstrap-constraints: "arch=amd64 cores=2 mem=4G"
bootstrap-options: "${{ secrets.JAMMY_BOOTSTRAP_OPTIONS }} --model-default datastore=vsanDatastore --model-default primary-network=VLAN_2763"
juju-channel: 3.1/stable
- name: Run test
run: |
tox -e integration -- --basetemp=/home/ubuntu/pytest
- name: Setup Debug Artifact Collection
if: ${{ failure() }}
run: mkdir tmp
- name: Collect Juju Status
if: ${{ failure() }}
run: |
juju status 2>&1 | tee tmp/juju-status.txt
juju-crashdump -s -m controller -a debug-layer -a config -o tmp/
mv juju-crashdump-* tmp/ | true
- name: Upload debug artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: test-run-artifacts
path: tmp