-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 820 Bytes
/
test.yml
File metadata and controls
39 lines (31 loc) · 820 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
34
35
36
37
38
39
name: Test
on:
pull_request:
branches:
- master
paths:
- 'app/**'
- 'Dockerfile'
- 'docker-compose.yml'
- '.github/workflows/test.yml'
# Prevent concurrent workflows - if infrastructure deploy is running, wait
concurrency:
group: ${{ github.repository }}-all-workflows
cancel-in-progress: false
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build test image
run: |
docker build --target test -t ttb-verifier:test .
- name: Run tests
run: |
docker run --rm ttb-verifier:test
- name: Check test results
run: |
echo "✅ All tests passed!"