We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b90735b commit f67c71dCopy full SHA for f67c71d
1 file changed
.github/workflows/test.yml
@@ -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
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