Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bundle test to ci #8

Merged
9 commits merged into from
Jan 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
fail-fast: false
matrix:
juju_channel:
- 2.4/stable
- 2.5/stable
- 2.6/stable
- 2.7/stable
Expand All @@ -55,6 +54,10 @@ jobs:
with:
name: charm
path: /tmp/charm-builds/megaraid-check
# Workarounds for https://github.com/actions/upload-artifact/issues/38
- run: chmod +x -R /tmp/charm-builds/megaraid-check/bin
- run: chmod +x -R /tmp/charm-builds/megaraid-check/hooks
- run: ls -la -R /tmp/charm-builds/megaraid-check/
- name: Set up LXD
run: |
sudo usermod --append --groups lxd $(whoami)
Expand All @@ -67,3 +70,8 @@ jobs:
run: |
sudo snap install juju --classic --channel=${{ matrix.juju_channel }}
sudo su $(whoami) -c 'juju bootstrap localhost --no-gui'
- name: Run tests
run: make test-${{ matrix.test_bundles }}
- name: Display juju debug log on failure
run: juju debug-log --lines 100
if: failure()
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ commands = charm-build --report --no-local-layers --force --log-level INFO

[testenv:test-xenial]
deps = jujuna
commands = jujuna deploy --wait tests/bundles/xenial.yaml
commands = jujuna deploy --wait --timeout 600 tests/bundles/xenial.yaml

[testenv:test-bionic]
deps = jujuna
commands = jujuna deploy --wait tests/bundles/bionic.yaml
commands = jujuna deploy --wait --timeout 600 tests/bundles/bionic.yaml

[isort]
force_single_line = True