Skip to content

Commit

Permalink
Add workflow to run juju 3.6 tests to ensure passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shayancanonical committed Aug 22, 2024
1 parent 70d6969 commit 78b7c86
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ concurrency:
cancel-in-progress: true

on:
pull_request:
# TODO: uncomment below before merging
# pull_request:
schedule:
- cron: '53 0 * * *' # Daily at 00:53 UTC
# Triggered on push to branch "main" by .github/workflows/release.yaml
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/juju_3_6_ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
name: Juju 3.6 CI tests

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:

jobs:
lint:
name: Lint
uses: canonical/data-platform-workflows/.github/workflows/[email protected]

build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
with:
cache: true

integration-test-3-6:
strategy:
fail-fast: false
matrix:
architecture:
- amd64
- arm64
name: Integration | 3.6 | ${{ matrix.architecture }}
needs:
- lint
- build
uses: canonical/data-platform-workflows/.github/workflows/[email protected]
with:
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
architecture: ${{ matrix.architecture }}
cloud: microk8s
juju-snap-channel: 3.6/beta
libjuju-version-constraint: 3.5.2.0
microk8s-snap-channel: 1.28-strict/stable
secrets:
# GitHub appears to redact each line of a multi-line secret
# Avoid putting `{` or `}` on a line by itself so that it doesn't get redacted in logs
integration-test: |
{ "UBUNTU_PRO_TOKEN" : "${{ secrets.UBUNTU_PRO_TOKEN }}",
"LANDSCAPE_ACCOUNT_NAME": "${{ secrets.LANDSCAPE_ACCOUNT_NAME }}",
"LANDSCAPE_REGISTRATION_KEY": "${{ secrets.LANDSCAPE_REGISTRATION_KEY }}", }

0 comments on commit 78b7c86

Please sign in to comment.