Skip to content

Commit f67c71d

Browse files
Adds test workflow
1 parent b90735b commit f67c71d

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Image
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
test_command:
7+
description: Path to a test script within the repo
8+
type: string
9+
default: bin/test
10+
image_tag:
11+
description: Tag of the Docker image to pull and test
12+
required: true
13+
type: string
14+
15+
env:
16+
COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
17+
DOCKER_APP_IMAGE: ghcr.io/${{ github.repository }}:${{ inputs.image_tag }}
18+
19+
jobs:
20+
test:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
26+
- name: Set up Docker Compose
27+
uses: docker/setup-compose-action@v1
28+
29+
- name: Run the stack
30+
run: docker compose up --detach
31+
32+
- name: Run the test command
33+
run: ${{ inputs.test_command }}

0 commit comments

Comments
 (0)