-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add github actions for tests and release #13
Closed
+98
−0
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Validating CODEOWNERS rules …
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,12 @@ | ||
# This is a template `CODEOWNERS` file for ops charms | ||
# This file is managed by bootstack-charms-spec and should not be modified | ||
# within individual charm repos. https://launchpad.net/bootstack-charms-spec | ||
|
||
# For more information about CODEOWNER, please refer to | ||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file | ||
|
||
# These owners will be the default owners for everything in the repo. Unless a | ||
# later match takes precedence, @canonical/bootstack will be requested for | ||
# review when someone opens a pull request. | ||
* @canonical/soleng-reviewers | ||
|
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,25 @@ | ||
# This is a template `issues_to_jira.yaml` file for ops charms | ||
# This file is managed by bootstack-charms-spec and should not be modified | ||
# within individual charm repos. https://launchpad.net/bootstack-charms-spec | ||
|
||
# This workflow requires to provide JIRA webhook URL via JIRA_URL GitHub Secret. | ||
# | ||
# Read more: | ||
# https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Automationtriggers-Incomingwebhook | ||
# | ||
# Original code source: | ||
# https://github.com/beliaev-maksim/github-to-jira-automation | ||
|
||
name: Issues to JIRA | ||
|
||
on: | ||
issues: | ||
# available via github.event.action | ||
types: [opened, reopened, closed] | ||
|
||
jobs: | ||
update: | ||
name: Update Issue | ||
uses: beliaev-maksim/github-to-jira-automation/.github/workflows/issues_to_jira.yaml@master | ||
secrets: | ||
JIRA_URL: ${{ secrets.JIRA_URL }} |
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,23 @@ | ||
# This is a template `pr.yaml` file for ops charms | ||
# This file is managed by bootstack-charms-spec and should not be modified | ||
# within individual charm repos. https://launchpad.net/bootstack-charms-spec | ||
|
||
name: PR workflow running lint checkers, unit and functional tests | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
branches: [ master, main ] | ||
paths-ignore: | ||
- '**.md' | ||
- '**.rst' | ||
|
||
jobs: | ||
pr: | ||
uses: canonical/bootstack-actions/.github/workflows/pull-request.yaml@main | ||
secrets: inherit | ||
with: | ||
python-version-unit: "['3.8', '3.10']" | ||
python-version-func: "3.10" | ||
tox-version: "<4" | ||
commands: "['make functional']" |
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,21 @@ | ||
# This is a template `release.yaml` file for ops charms | ||
# This file is managed by bootstack-charms-spec and should not be modified | ||
# within individual charm repos. https://launchpad.net/bootstack-charms-spec | ||
|
||
name: Release to Edge | ||
|
||
on: | ||
push: | ||
branches: [ master, main ] | ||
|
||
jobs: | ||
release: | ||
uses: canonical/bootstack-actions/.github/workflows/charm-release.yaml@main | ||
secrets: inherit | ||
with: | ||
python-version-unit: "['3.8', '3.10']" | ||
python-version-func: "3.10" | ||
tox-version: "<4" | ||
channel: "latest/edge" | ||
upload-image: false | ||
commands: "['make functional']" |
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,17 @@ | ||
# This is a template `sonar.yaml` file for ops charms | ||
# This file is managed by bootstack-charms-spec and should not be modified | ||
# within individual charm repos. https://launchpad.net/bootstack-charms-spec | ||
|
||
name: SonarCloud | ||
on: | ||
workflow_run: | ||
workflows: | ||
- PR workflow running lint checkers, unit and functional tests | ||
types: [completed] | ||
|
||
jobs: | ||
sonar: | ||
uses: canonical/bootstack-actions/.github/workflows/sonar.yaml@main | ||
secrets: inherit | ||
with: | ||
workflow-name: PR workflow running lint checkers, unit and functional tests |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be updated as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JIRA_URL
is there.