From 51f6de46e2279335d69979254428681358d47472 Mon Sep 17 00:00:00 2001 From: arturo-seijas <102022572+arturo-seijas@users.noreply.github.com> Date: Thu, 18 Jul 2024 13:42:05 +0200 Subject: [PATCH] Add workflows for tracks support (#1823) * Add workflows for tracks support * Change pg db for testing * Fix wf * Fix wf --- .github/workflows/comment_contributing.yaml | 13 +++++++++++++ .github/workflows/publish_charm.yaml | 3 +-- tests/charm/integration/conftest.py | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/comment_contributing.yaml diff --git a/.github/workflows/comment_contributing.yaml b/.github/workflows/comment_contributing.yaml new file mode 100644 index 00000000..c51f8731 --- /dev/null +++ b/.github/workflows/comment_contributing.yaml @@ -0,0 +1,13 @@ +name: Comment on the pull request + +on: + pull_request: + types: + - opened + branches: + - 'track/**' + +jobs: + comment-on-pr: + uses: canonical/operator-workflows/.github/workflows/comment_contributing.yaml@main + secrets: inherit diff --git a/.github/workflows/publish_charm.yaml b/.github/workflows/publish_charm.yaml index 6e98aa85..79495070 100644 --- a/.github/workflows/publish_charm.yaml +++ b/.github/workflows/publish_charm.yaml @@ -1,16 +1,15 @@ name: Publish to edge on: - workflow_dispatch: push: branches: - main + - track/* jobs: publish-to-edge: uses: canonical/operator-workflows/.github/workflows/publish_charm.yaml@main secrets: inherit with: - channel: latest/edge charmcraft-channel: "latest/edge" resource-mapping: '{"repo-policy-compliance": "flask-app-image"}' diff --git a/tests/charm/integration/conftest.py b/tests/charm/integration/conftest.py index 49f86d23..c415d663 100644 --- a/tests/charm/integration/conftest.py +++ b/tests/charm/integration/conftest.py @@ -81,7 +81,7 @@ async def app_fixture( database_name = "postgresql-k8s" await model.deploy( database_name, - channel="14/edge", + channel="14/stable", series="jammy", trust=True, config={