DO NOT MERGE test charmcraft candidate #1189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2022 Canonical Ltd. | |
# See LICENSE file for licensing details. | |
name: Tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
schedule: | |
- cron: '53 0 * * *' # Daily at 00:53 UTC | |
# Triggered on push to branch "main" by .github/workflows/release.yaml | |
workflow_call: | |
jobs: | |
build: | |
name: Build charm | cache ${{ matrix.cache }} | ${{ matrix.charmcraft.name }} | |
strategy: | |
fail-fast: false | |
matrix: | |
cache: [true, false] | |
charmcraft: | |
- rev: 3979 | |
name: 2.7.0 | |
- name: 2.7.1 | |
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | |
with: | |
# Use of cache blocked by https://github.com/canonical/charmcraft/issues/1456 | |
# Details: https://github.com/canonical/charmcraftcache/issues/3 | |
cache: ${{ matrix.cache }} | |
# Remove prefix when cache enabled | |
# Needed to avoid conflict with artifact name on release CI | |
artifact-prefix: ci-packed-charm-${{ matrix.cache }}-${{ matrix.charmcraft.name }} | |
charmcraft-snap-revision: ${{ matrix.charmcraft.rev }} |