-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (27 loc) · 786 Bytes
/
test.yml
File metadata and controls
33 lines (27 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Test Image
on:
workflow_dispatch:
inputs:
test_command:
description: Path to a test script within the repo
type: string
default: bin/test
image_tag:
description: Tag of the Docker image to pull and test
required: true
type: string
env:
COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
DOCKER_APP_IMAGE: ghcr.io/${{ github.repository }}:${{ inputs.image_tag }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Compose
uses: docker/setup-compose-action@v1
- name: Run the stack
run: docker compose up --detach
- name: Run the test command
run: ${{ inputs.test_command }}