Skip to content

Commit

Permalink
Update github workflow to include a noble build on charmcraft-2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Jul 31, 2024
1 parent 0c02af3 commit 637e2b6
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- '3.12' # noble
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox
Expand All @@ -31,12 +31,12 @@ jobs:
needs: unit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Add fake tag to make vergit happy
run: git tag v0.0.0
- uses: snapcore/action-build@v1
id: snap-build
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: charm-snap
path: ${{ steps.snap-build.outputs.snap }}
Expand All @@ -62,12 +62,12 @@ jobs:
sudo iptables -F FORWARD
sudo iptables -P FORWARD ACCEPT
- name: Checkout layer-basic
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: juju-solutions/layer-basic

- name: Download built charm snap
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: charm-snap
path: tests/charm-minimal/charm-snap
Expand Down Expand Up @@ -107,6 +107,9 @@ jobs:
- name: ubuntu
channel: "22.04"
architectures: [amd64]
- name: ubuntu
channel: "24.04"
architectures: [amd64]
EOF
charmcraft pack -p tests/charm-minimal -v
- name: Build reactive charm with charmcraft-3.x
Expand Down Expand Up @@ -146,12 +149,12 @@ jobs:
# uses: lhotari/action-upterm@v1
- name: Upload charmcraft execution logs
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: charmcraft execution logs
path: ~/snap/charmcraft/common/cache/charmcraft/log/*.log
- name: Upload built charms
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Built charms
path: |
Expand Down

0 comments on commit 637e2b6

Please sign in to comment.