-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (50 loc) · 1.49 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
name: Operator Tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
workflow_call:
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yaml
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@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
channel: "1.27-strict/stable"
bootstrap-constraints: "cores=2 mem=2G"
juju-channel: 3.1/stable
# This is needed until
# https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 3.1.5"
- name: Pin charmcraft version
run: |
sudo snap refresh --channel=2.2 charmcraft
- name: Install rockcraft
run: |
sudo snap install rockcraft --classic
- uses: actions/download-artifact@v3
with:
name: mongodb-rock
- name: Install tox
run: python3 -m pip install tox
- name: Integration Tests
run: sg snap_microk8s -c "tox -e ${{ matrix.env }}"
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
if: {{ failure() }}