Files
mtusi2026lab7-fork/.github/workflows/lab7.yml

34 lines
1.1 KiB
YAML

name: Lab7 HTTPS integration
on: [push, pull_request]
permissions:
contents: read
jobs:
compose:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- name: Create disposable local PKI and initialize OpenBao
run: |
python3 scripts/bootstrap.py
docker compose config --quiet
docker compose up -d openbao
python3 scripts/bao.py init
python3 scripts/bao.py provision
- name: Build and start the isolated stack
run: |
docker compose build api worker minio s3-init
docker compose up -d --no-build
python3 -c 'import sys; sys.path.insert(0, "student-tests"); import security; security.wait_api(security.api(), timeout=150)'
- name: Run the public contract and HTTPS checks
run: |
make check
make test CA_FILE=secrets/ca.crt
make test-security CA_FILE=secrets/ca.crt
- name: Stop containers and discard the ephemeral CI volumes
if: always()
run: docker compose down -v