Skip to content

ci, tests: pass charm artefacts to deploy and test charms #1922

ci, tests: pass charm artefacts to deploy and test charms

ci, tests: pass charm artefacts to deploy and test charms #1922

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

View workflow run for this annotation

GitHub Actions / On Pull Request

Invalid workflow file

The workflow is not valid. In .github/workflows/on_pull_request.yaml (Line: 19, Col: 11): Error from called workflow canonical/kfp-operators/.github/workflows/integrate.yaml@4fd55d92e23b78a4f0fd541e5081323ea04c367e (Line: 134, Col: 9): Unexpected value 'needs'
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