diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml new file mode 100644 index 0000000..345cd10 --- /dev/null +++ b/.github/workflows/on_pull_request.yaml @@ -0,0 +1,18 @@ +name: On Pull Request + +on: + pull_request: + +jobs: + + on-pull-request: + name: Get rocks modified and build-scan-test them + uses: canonical/charmed-kubeflow-workflows/.github/workflows/get-rocks-modified-and-build-scan-test-publish.yaml@main + permissions: + pull-requests: read + secrets: inherit + with: + microk8s-channel: 1.29-strict/stable + juju-channel: 3.4/stable + python-version: "3.8" + rockcraft-channel: latest/stable diff --git a/.github/workflows/on_push.yaml b/.github/workflows/on_push.yaml new file mode 100644 index 0000000..7b99e31 --- /dev/null +++ b/.github/workflows/on_push.yaml @@ -0,0 +1,21 @@ +name: On Push + +on: + push: + branches: + - main + - track/** + +jobs: + + on-push: + name: Get rocks modified and build-scan-test-publish them + uses: canonical/charmed-kubeflow-workflows/.github/workflows/get-rocks-modified-and-build-scan-test-publish.yaml@main + permissions: + pull-requests: read + secrets: inherit + with: + microk8s-channel: 1.29-strict/stable + juju-channel: 3.4/stable + python-version: "3.8" + rockcraft-channel: latest/stable