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

Test smoke testing on my repo #3

Merged
merged 1 commit into from
Aug 26, 2024
Merged
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
36 changes: 36 additions & 0 deletions .github/workflows/smoke.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ops Smoke Tests

on:
workflow_dispatch:
schedule:
- cron: '0 7 25 * *'

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
juju-version: ['2.9', '3', '4.0']
charmcraft-version: ['2.x', '3.x']

steps:
- name: Set up Juju
run: sudo snap install juju --channel=${{ matrix.juju-version }}

- name: Set up LXD
uses: canonical/setup-lxd@ce8decb3609c0a03c5abd5034d02a6c145e2076f
with:
channel: 5.0/stable

- name: Bootstrap Juju controller
run: juju bootstrap localhost

- name: Install charmcraft
run: sudo snap install charmcraft --channel=${{ matrix.charmcraft-version }}

- name: Install tox
run: pip install tox~=4.2

- name: Run smoke tests
run: tox -e smoke
Loading