Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/test-cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Test Juno CLI runs from Docker image

on:
workflow_dispatch:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
load: true
tags: juno-action:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Test Juno CLI version
run: |
OUTPUT=$(docker run --rm -e JUNO_TOKEN="${{ secrets.JUNO_TOKEN }}" juno-action version --cli)
echo "$OUTPUT"
if [[ "$OUTPUT" != *"v0.4.0"* ]]; then
echo "❌ Expected version v0.4.0 not found in output"
exit 1
fi
shell: bash