Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
huwshimi committed Feb 24, 2025
1 parent 0532c51 commit ac8b5e6
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/jimm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Integration Test

on:
pull_request:

jobs:
startjimm:
name: Test JIMM with Juju controller
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout Juju Dashboard repo
uses: actions/checkout@v4
- name: Checkout JIMM repo
uses: actions/checkout@v4
with:
repository: canonical/jimm
path: jimm

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'jimm/go.mod'

- name: Go vendor to speed up docker build
run: cd jimm && go mod vendor

- name: Start JIMM (pull request)
uses: ./jimm/.github/actions/test-server
with:
jimm-version: dev
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
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- name: Install
run: yarn install --immutable
- name: Build
run: yarn build
- name: Configure
run: sed -i -e 's/controllerAPIEndpoint\:\ \"\"/controllerAPIEndpoint:\ "ws:\/\/jimm.localhost\/api"/g' juju-dashboard/build/config.js
- name: Start
run: npx http-server build --port 8000 &

0 comments on commit ac8b5e6

Please sign in to comment.