Skip to content

Commit

Permalink
adds CI (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsander-souza authored Feb 16, 2024
1 parent 7ce7212 commit 464bb9e
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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 -->
53 changes: 53 additions & 0 deletions .github/workflows/ci.yaml
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

0 comments on commit 464bb9e

Please sign in to comment.