Skip to content

Commit

Permalink
ci: Rework GitHub workflow files (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
dashmage authored Jan 11, 2024
1 parent d94ee53 commit a0f7f13
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 24 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check workflow running lint checkers, unit and functional tests

on:
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ master, main ]
paths-ignore:
- '**.md'
- '**.rst'

jobs:
lint-unit:
uses: canonical/bootstack-actions/.github/workflows/lint-unit.yaml@v2
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
with:
python-version: ${{ matrix.python-version }}
tox-version: "<4"

func:
uses: canonical/bootstack-actions/.github/workflows/func.yaml@v2
needs: lint-unit
strategy:
fail-fast: false
matrix:
include:
- command: "FUNC_ARGS='--series focal' make functional"
- command: "FUNC_ARGS='--series jammy' make functional"
with:
command: ${{ matrix.command }}
juju-channel: "3.1/stable"
nested-containers: false
provider: "lxd"
python-version: "3.10"
timeout-minutes: 120
tox-version: "<4"
24 changes: 0 additions & 24 deletions .github/workflows/pr.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This is a template `release.yaml` file for ops charms
# This file is managed by bootstack-charms-spec and should not be modified
# within individual charm repos. https://launchpad.net/bootstack-charms-spec

name: Release to Edge

on:
push:
branches: [master, main]

concurrency:
group: release
cancel-in-progress: true

jobs:
check:
uses: ./.github/workflows/check.yaml

release:
needs: check
uses: canonical/bootstack-actions/.github/workflows/charm-release.yaml@v2
secrets: inherit
with:
channel: "latest/edge"
upload-image: false

0 comments on commit a0f7f13

Please sign in to comment.