ci, tests: pass charm artefacts to deploy and test charms #1922
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-paths-and-build: | ||
name: Get charm paths and build with cache | ||
# FIXME: change to main before merging | ||
uses: canonical/charmed-kubeflow-workflows/.github/workflows/get_charms_build_with_cache.yaml@KF-6690-build-with-cache | ||
tests: | ||
name: Run Tests | ||
needs: [get-paths-and-build] | ||
uses: ./.github/workflows/integrate.yaml | ||
Check failure on line 19 in .github/workflows/on_pull_request.yaml GitHub Actions / On Pull RequestInvalid workflow file
|
||
secrets: inherit | ||
# publish runs in parallel with tests, as we always publish in this situation | ||
publish-charm: | ||
name: Publish Charm | ||
needs: [get-paths-and-build] | ||
uses: ./.github/workflows/publish.yaml | ||
secrets: inherit |