Skip to content

Commit

Permalink
fix release workflow (#37)
Browse files Browse the repository at this point in the history
# PR
## Proposal
Added workflow-call to CI.yaml, allowing it to be called from release.yaml. While I'm working on the CI, I also updated LXD and some github actions. 

## Commits
* added workflow-call to CI.yaml

* updated CI actions and lxd
  • Loading branch information
Will Fitch authored Nov 10, 2022
1 parent 5bca287 commit bee5d3d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Tests
on:
pull_request:
workflow_call:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m pip install tox
- name: Run linters
Expand All @@ -19,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install dependencies
run: python -m pip install tox
- name: Run tests
Expand All @@ -33,12 +34,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.4/stable
lxd-channel: 5.7/stable
- name: Run integration tests
run: tox -e standalone-integration

Expand All @@ -50,12 +51,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.4/stable
lxd-channel: 5.7/stable
- name: Run integration tests
run: tox -e backend-integration

Expand All @@ -67,12 +68,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.4/stable
lxd-channel: 5.7/stable
- name: Run integration tests
run: tox -e legacy-relation-integration

Expand All @@ -85,11 +86,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
lxd-channel: 5.4/stable
lxd-channel: 5.7/stable
- name: Run scaling integration tests
run: tox -e scaling-integration
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check libs
Expand All @@ -37,10 +37,10 @@ jobs:
with:
fetch-depth: 0
- name: Select charmhub channel
uses: canonical/charming-actions/channel@2.0.0-rc
uses: canonical/charming-actions/channel@2.1.0
id: channel
- name: Upload charm to charmhub
uses: canonical/charming-actions/upload-charm@2.0.0-rc
uses: canonical/charming-actions/upload-charm@2.1.0
with:
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit bee5d3d

Please sign in to comment.