Skip to content
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

Update Github workflows #291

Merged
merged 12 commits into from
Nov 1, 2023
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,15 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"

build:
name: Build charms
uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v5
strategy:
fail-fast: true
matrix:
charm: [".", "tests/integration/relation_tests/new_relations/application-charm"]
name: Build ${{matrix.charms}} charm
dmitry-ratushnyy marked this conversation as resolved.
Show resolved Hide resolved
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
with:
charmcraft-snap-channel: "latest/edge"
path-to-charm-directory: ${{ matrix.charm }}

integration-test:
strategy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:

build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v5
uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v5.1.2
with:
charmcraft-snap-channel: "latest/edge"

release:
release-charm:
name: Release charm
needs:
- ci-tests
Expand All @@ -34,3 +34,19 @@ jobs:
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }}
permissions:
contents: write # Needed to create GitHub release

release-libraries:
name: Release libraries
needs:
- ci-tests
dmitry-ratushnyy marked this conversation as resolved.
Show resolved Hide resolved
- release
dmitry-ratushnyy marked this conversation as resolved.
Show resolved Hide resolved
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Release any bumped charm libs
uses: canonical/charming-actions/[email protected]
with:
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
Loading