Skip to content

Commit 1bcf896

Browse files
aberohamclaude
andcommitted
ci: add Docker Compose test job
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bda41e4 commit 1bcf896

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,23 @@ jobs:
8787
- run: npm install
8888
- run: npm test
8989

90+
test-docker:
91+
runs-on: ubuntu-latest
92+
steps:
93+
- uses: actions/checkout@v6
94+
- name: Generate .env
95+
run: ./generate-env.sh
96+
- name: Build and start services
97+
run: docker compose up --build -d --wait
98+
- name: Run tests
99+
run: docker compose exec api npm test
100+
- name: Logs on failure
101+
if: failure()
102+
run: docker compose logs
103+
- name: Tear down
104+
if: always()
105+
run: docker compose down -v
106+
90107
test-win:
91108
needs: [ get-lts ]
92109
runs-on: windows-latest

0 commit comments

Comments
 (0)