Skip to content

Commit

Permalink
Add workflows for tracks support (#272)
Browse files Browse the repository at this point in the history
* Add workflows for tracks support

* Use pg 14/stable
  • Loading branch information
arturo-seijas authored Jul 11, 2024
1 parent 2b07377 commit 151c578
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/comment_contributing.yaml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 1 addition & 10 deletions .github/workflows/publish_charm.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 151c578

Please sign in to comment.