Add composite action for starting a JIMM environment #1
Workflow file for this run
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: Integration Test | |
on: | |
workflow_dispatch: | |
inputs: | |
jimm-version: | |
description: > | |
JIMM version tag to use. This will decide the version of JIMM to start e.g. v3.1.7. | |
View all available versions at https://github.com/canonical/jimm/pkgs/container/jimm. | |
required: true | |
pull_request: | |
jobs: | |
startjimm: | |
name: Start JIMM | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout JIMM repo | |
uses: actions/checkout@v4 | |
- name: Start JIMM (fixed version) | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: ./.github/actions/test-server | |
with: | |
jimm-version: v3.1.7 | |
juju-channel: "3/stable" | |
ghcr-pat: ${{ secrets.GITHUB_TOKEN }} | |
- name: Start JIMM (user provided version) | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
uses: ./.github/actions/test-server | |
with: | |
jimm-version: ${{ inputs.jimm-version }} | |
juju-channel: "3/stable" | |
ghcr-pat: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create a model, deploy an application and run juju status | |
run: | | |
juju add-model foo && \ | |
juju deploy haproxy && \ | |
sleep 5 && \ | |
juju status |