feat: cargo make + docker for e2e tests #7
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
name: Push (main) | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- operator/** | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-test: | |
uses: ./.github/workflows/build-charm.yaml | |
release-to-charmhub: | |
name: Release to CharmHub | |
needs: | |
- build-test | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Select charmhub channel | |
uses: canonical/charming-actions/[email protected] | |
id: channel | |
- name: Upload charm to charmhub | |
uses: canonical/charming-actions/[email protected] | |
with: | |
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
channel: "${{ steps.channel.outputs.name }}" |