Skip to content

Commit

Permalink
feat: Add separate build job + download artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
orfeas-k committed Sep 16, 2024
1 parent 3b24b7c commit 3ef2a0b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,28 @@ jobs:
- name: Run unit tests
run: tox -e unit

deploy:
build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v21.0.0
with:
cache: true

integration-tests:
name: Integration Test
runs-on: ubuntu-20.04
needs: [build]
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download packed charm(s)
id: download-charms
timeout-minutes: 5
uses: actions/download-artifact@v4
with:
pattern: ${{ needs.build.outputs.artifact-prefix }}-*
merge-multiple: true

- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.charm
*__pycache__
*.tox
venv/

0 comments on commit 3ef2a0b

Please sign in to comment.