-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ce7212
commit 464bb9e
Showing
2 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: Bug report | ||
about: File a bug report | ||
labels: bug | ||
|
||
--- | ||
|
||
<!-- Thank you for submitting a bug report! All fields are required unless marked optional. --> | ||
|
||
## Steps to reproduce | ||
<!-- Please enable debug logging by running `juju model-config logging-config="<root>=INFO;unit=DEBUG"` (if possible) --> | ||
1. | ||
|
||
## Expected behavior | ||
|
||
## Actual behavior | ||
<!-- If applicable, add screenshots --> | ||
|
||
## Versions | ||
|
||
<!-- Run `lsb_release -sd` --> | ||
Operating system: | ||
|
||
<!-- Run `juju version` --> | ||
Juju CLI: | ||
|
||
<!-- Model version from `juju status` --> | ||
Juju agent: | ||
|
||
<!-- App revision from `juju status` or (advanced) commit hash --> | ||
Charm revision: | ||
|
||
## Log output | ||
<!-- Please enable debug logging by running `juju model-config logging-config="<root>=INFO;unit=DEBUG"` (if possible) --> | ||
<!-- Then, run `juju debug-log --replay > log.txt` and upload "log.txt" file here --> | ||
Juju debug log: | ||
|
||
<!-- (Optional) Copy the logs that are relevant to the bug & paste inside triple backticks below --> | ||
|
||
|
||
## Additional context | ||
<!-- (Optional) Add any additional information here --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2024 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
name: Unit testing | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
# Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened | ||
# by other workflows. | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
jobs: | ||
maas-agent-charm: | ||
name: MAAS Agent unit test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
defaults: | ||
run: | ||
working-directory: ./maas-agent-charm | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install tox | ||
run: | | ||
pipx install tox | ||
- name: Run linter | ||
run: tox run -e lint | ||
- name: Run static checks | ||
run: tox run -e static | ||
- name: Run tests | ||
run: tox run -e unit | ||
|
||
maas-region-charm: | ||
name: MAAS region unit test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
defaults: | ||
run: | ||
working-directory: ./maas-region-charm | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install tox | ||
run: | | ||
pipx install tox | ||
- name: Run linter | ||
run: tox run -e lint | ||
- name: Run static checks | ||
run: tox run -e static | ||
- name: Run tests | ||
run: tox run -e unit |