Skip to content

Return artefact status from api (#65) #90

Return artefact status from api (#65)

Return artefact status from api (#65) #90

name: Run charm tests
on:
push:
branches: ["main"]
tags: ["v*.*.*"]
jobs:
integration-test:
name: Integration tests
runs-on: [self-hosted, linux, large]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup LXD
uses: canonical/setup-lxd@main
with:
channel: 5.13/stable
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: microk8s
- name: Run integration tests
run: tox -e integration
- name: Archive Tested Charm
uses: actions/upload-artifact@v3
if: ${{ github.ref_name == 'main' }}
with:
name: tested-charm
path: .tox/**/test-observer-frontend_ubuntu-22.04-amd64.charm
retention-days: 5
- 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
defaults:
run:
working-directory: ./frontend/charm