forked from mtusi2026/mtusi2026lab5
22 lines
654 B
YAML
22 lines
654 B
YAML
name: Lab 5 application
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
compose-smoke:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
env:
|
|
COMPOSE_PROJECT_NAME: lab5-ci
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Initialize disposable configuration
|
|
run: sh scripts/init-local.sh
|
|
- name: Build and start
|
|
run: docker compose --env-file .env up -d --build --wait --wait-timeout 180
|
|
- name: Run contract smoke
|
|
run: make check test BASE_URL=http://127.0.0.1:8085
|
|
- name: Remove the CI project
|
|
if: always()
|
|
run: docker compose --env-file .env down --volumes
|