Skip to content

Commit

Permalink
split integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zmraul committed Oct 19, 2022
1 parent dc437fb commit 721934b
Show file tree
Hide file tree
Showing 7 changed files with 404 additions and 244 deletions.
38 changes: 37 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# This is needed until https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 2.9.29"
- name: Run integration tests
run: tox -e integration
run: tox -e integration-charm

integration-test-relation:
name: Integration tests (relation)
Expand All @@ -60,3 +60,39 @@ jobs:
bootstrap-options: "--agent-version 2.9.29"
- name: Run integration tests
run: tox -e integration-relation

integration-test-password:
name: Integration tests (password)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
# This is needed until https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 2.9.29"
- 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@v2
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
# This is needed until https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 2.9.29"
- name: Run integration tests
run: tox -e integration-scaling
40 changes: 39 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
# This is needed until https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 2.9.29"
- name: Run integration tests
run: tox -e integration
run: tox -e integration-charm

integration-test-relation:
name: Integration tests (relation)
Expand All @@ -78,6 +78,42 @@ jobs:
- name: Run integration tests
run: tox -e integration-relation

integration-test-password:
name: Integration tests (password)
needs:
- lint
- unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
# This is needed until https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 2.9.29"
- 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@v2
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
# This is needed until https://bugs.launchpad.net/juju/+bug/1977582 is fixed
bootstrap-options: "--agent-version 2.9.29"
- name: Run integration tests
run: tox -e integration-scaling

release-to-charmhub:
name: Release to CharmHub
needs:
Expand All @@ -86,6 +122,8 @@ jobs:
- unit-test
- integration-test-general
- integration-test-relation
- integration-test-scaling
- integration-test-password
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
Loading

0 comments on commit 721934b

Please sign in to comment.