Skip to content

Commit

Permalink
Merge pull request #19 from canonical/archive-logs
Browse files Browse the repository at this point in the history
Archive logs on integration tests failure
  • Loading branch information
ghislainbourgeois authored Apr 4, 2023
2 parents 21c35c1 + 04d4088 commit ddeaeb7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,15 @@ jobs:

- name: Run integration tests
run: tox -e integration
- name: Archive charmcraft logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: charmcraft-logs
path: /home/runner/.local/state/charmcraft/log/*.log
- name: Archive juju crashdump
if: failure()
uses: actions/upload-artifact@v3
with:
name: juju-crashdump
path: juju-crashdump-*.tar.xz
3 changes: 1 addition & 2 deletions charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ bases:
- build-on:
- name: "ubuntu"
channel: "20.04"
- name: "ubuntu"
channel: "22.04"
run-on:
- name: "ubuntu"
channel: "20.04"
Expand All @@ -20,3 +18,4 @@ parts:
- libssl-dev
- rustc
- cargo
- pkg-config
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ commands =
[testenv:integration]
description = Run integration tests
deps =
juju
juju<3.1
pytest
pytest-operator
-r{toxinidir}/requirements.txt
Expand Down

0 comments on commit ddeaeb7

Please sign in to comment.