-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (57 loc) · 1.75 KB
/
integration.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
name: Operator Tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
build:
name: Build rock
uses: canonical/data-platform-workflows/.github/workflows/build_rock.yaml@v16
integration:
runs-on: ubuntu-latest
timeout-minutes: 120
needs: build
strategy:
matrix:
env: [integration, ha-integration, tls-integration]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup operator environment
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
with:
cloud: microk8s
microk8s-snap-channel: 1.29-strict/stable
juju-agent-version: 3.1.7
- name: Install rockcraft
run: |
sudo snap install rockcraft --classic --revision 1206
sudo snap refresh rockcraft --hold=forever
- name: Download rock package(s)
uses: actions/download-artifact@v4
with:
pattern: ${{ needs.build.outputs.artifact-prefix }}-*
merge-multiple: true
- name: Install tox & poetry
run: |
pipx install tox
pipx install poetry
- name: Integration Tests
run: |
sg snap_microk8s -c "tox -e ${{ matrix.env }}"
- name: Free disk space
run: |
echo "Free disk space after int tests"
df -T
# free space in the runner
rockcraft clean
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "Free disk after int tests"
df -T