Skip to content

Rockcraft and Charmcraft cache #647

Rockcraft and Charmcraft cache

Rockcraft and Charmcraft cache #647

Workflow file for this run

# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
name: Workflow test
on:
pull_request:
jobs:
simple:
uses: ./.github/workflows/test.yaml
secrets: inherit
with:
working-directory: "tests/workflows/integration/test-upload-charm/"
self-hosted-runner: false
simple-self-hosted:
uses: ./.github/workflows/test.yaml
secrets: inherit
with:
working-directory: "tests/workflows/integration/test-upload-charm/"
self-hosted-runner: true
integration:
uses: ./.github/workflows/integration_test.yaml

Check failure on line 23 in .github/workflows/workflow_test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/workflow_test.yaml

Invalid workflow file

error parsing called workflow ".github/workflows/workflow_test.yaml" -> "./.github/workflows/integration_test.yaml" --> "./.github/workflows/build_rocks.yaml" : the `uses' attribute must be a path, a Docker image, or owner/repo@ref
secrets: inherit
with:
working-directory: "tests/workflows/integration/test-upload-charm/"
trivy-image-config: "tests/workflows/integration/test-upload-charm/trivy.yaml"
integration-rock:
uses: ./.github/workflows/integration_test.yaml
secrets: inherit
needs:
- integration
with:
working-directory: "tests/workflows/integration/test-rock/"
trivy-image-config: "tests/workflows/integration/test-rock/trivy.yaml"
publish:
if: ${{ !github.event.pull_request.head.repo.fork }}
uses: ./.github/workflows/publish_charm.yaml
secrets: inherit
needs:
- integration-rock
with:
channel: latest/edge
working-directory: tests/workflows/integration/test-upload-charm/
check:
runs-on: ubuntu-latest
if: always() && !cancelled()
timeout-minutes: 5
needs:
- simple
- integration
- integration-rock
- publish
steps:
- run: |
[ '${{ needs.simple.result }}' = 'success' ] || (echo simple failed && false)
[ '${{ needs.integration.result }}' = 'success' ] || (echo integration failed && false)
[ '${{ needs.integration-rock.result }}' = 'success' ] || (echo integration-rock failed && false)
[ '${{ needs.publish.result }}' != 'failure' ] || (echo publish failed && false)