Skip to content

Support aliasing the redis relation #163

Support aliasing the redis relation

Support aliasing the redis relation #163

Workflow file for this run

name: Tests
on:
workflow_call:
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m pip install tox
- name: Run linters
run: tox -e lint
unit-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python -m pip install tox
- name: Run tests
run: tox -e unit
integration-test-general:
name: Integration tests (general)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
bootstrap-options: "--agent-version 2.9.43"
- name: Run integration tests
run: tox -e integration-charm
integration-test-relation:
name: Integration tests (relation)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
bootstrap-options: "--agent-version 2.9.43"
- name: Run integration tests
run: tox -e integration-relation
integration-test-relation-single-unit:
name: Integration tests (relation, num_units=1)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
bootstrap-options: "--agent-version 2.9.43"
- name: Run integration tests
run: tox -e integration-relation -- --num-units 1
integration-test-password:
name: Integration tests (password)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
bootstrap-options: "--agent-version 2.9.43"
- name: Run integration tests
run: tox -e integration-password
integration-test-scaling:
name: Integration tests (scaling)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
bootstrap-options: "--agent-version 2.9.29"
- name: Run integration tests
run: tox -e integration-scaling