This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from jat-canonical/test-arm-runner
feat(tests,ci): add support for testing from edge snap revision for ci
- Loading branch information
Showing
10 changed files
with
110 additions
and
15 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Get current version | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
charm_version: | ||
description: "Get the current version of the charm" | ||
value: ${{ jobs.get-charm-version.outputs.version }} | ||
|
||
jobs: | ||
get-charm-version: | ||
runs-on: [self-hosted, linux, X64, jammy, large] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | ||
- name: Get charm version | ||
id: charm_version | ||
run: | | ||
echo "version=$(cat version)" >> $GITHUB_OUTPUT | ||
outputs: | ||
version: ${{ steps.charm_version.outputs.version }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ concurrency: | |
jobs: | ||
test: | ||
uses: ./.github/workflows/build-and-test.yaml | ||
with: | ||
snap_risk_level: edge |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
name: Release To Edge | ||
|
||
on: | ||
push: | ||
branches: | ||
|
@@ -8,21 +10,31 @@ on: | |
- .github/renovate.json5 | ||
- pyproject.toml | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
get-version: | ||
uses: ./.github/workflows/get-version.yaml | ||
|
||
ci: | ||
name: Build & Test | ||
uses: ./.github/workflows/build-and-test.yaml | ||
secrets: inherit | ||
with: | ||
snap_risk_level: edge | ||
|
||
release: | ||
name: Release charm | ||
needs: | ||
- ci | ||
- get-version | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
with: | ||
# TODO: change this when we actually want to cutover the charm to main | ||
# channels | ||
channel: 1.21-ops/edge | ||
channel: ${{ needs.get-version.outputs.version }}-ops/edge | ||
artifact-prefix: ${{ needs.ci.outputs.artifact-prefix }} | ||
secrets: | ||
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.21 | ||
1.22 |