Skip to content

ci: remove wrapper around get charm paths and build with cache workflows #1958

ci: remove wrapper around get charm paths and build with cache workflows

ci: remove wrapper around get charm paths and build with cache workflows #1958

name: On Pull Request
# On pull_request, we:
# * always publish to charmhub at latest/edge/branchname
# * always run tests
# * always run builds with cache
on:
pull_request:
jobs:
get-charm-paths:
name: Generate the Charm Matrix content
runs-on: ubuntu-latest
outputs:
charm_paths: ${{ steps.get-charm-paths.outputs.charm-paths }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get paths for all charms in this repo
id: get-charm-paths
uses: canonical/kubeflow-ci/actions/get-charm-paths@main
build:
name: Build charms
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
needs: get-charm-paths
strategy:
fail-fast: false
matrix:
charm: ${{ fromJson(needs.get-charm-paths.outputs.charm_paths) }}
with:
cache: true
charmcraft-snap-channel: 3.x/stable
path-to-charm-directory: ./${{ matrix.charm }}
tests:
name: Run Tests
needs: build
uses: ./.github/workflows/integrate.yaml
secrets: inherit
# publish runs in parallel with tests, as we always publish in this situation
publish-charm:
name: Publish Charm
needs: build
uses: ./.github/workflows/publish.yaml
secrets: inherit