From 151c578e9bcf1dba078ecb3ec5e67981d6b44e15 Mon Sep 17 00:00:00 2001 From: arturo-seijas <102022572+arturo-seijas@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:53:27 +0200 Subject: [PATCH] Add workflows for tracks support (#272) * Add workflows for tracks support * Use pg 14/stable --- .github/workflows/comment_contributing.yaml | 13 +++++++++++++ .github/workflows/publish_charm.yaml | 11 +---------- tests/integration/conftest.py | 2 +- 3 files changed, 15 insertions(+), 11 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 1734619e..a84cba1f 100644 --- a/.github/workflows/publish_charm.yaml +++ b/.github/workflows/publish_charm.yaml @@ -1,21 +1,12 @@ name: Publish to edge -# On push to a "special" branch, we: -# * always publish to charmhub at latest/edge/branchname -# * always run tests -# where a "special" branch is one of main/master or track/**, as -# by convention these branches are the source for a corresponding -# charmhub edge channel. - 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 diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index a88491a7..bf9cc8ab 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -149,7 +149,7 @@ async def app_fixture( postgres_app = await model.deploy( "postgresql-k8s", - channel="14/edge", + channel="14/stable", series="jammy", trust=True, config={"profile": "testing"},