name: Lab 6 checks on: [push, pull_request] permissions: contents: read jobs: contracts: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.12' - run: python -m pip install -r requirements-dev.txt - run: make check validate PYTHON=python application: runs-on: ubuntu-latest needs: contracts timeout-minutes: 25 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.12' - uses: actions/setup-go@v6 with: go-version-file: go.mod cache: true - name: Audit Go code and dependencies run: | go mod verify go test -race -count=1 ./... go vet ./... go run golang.org/x/vuln/cmd/govulncheck@v1.9.0 ./... - name: Initialize local CI configuration run: | cp .env.example .env make init-secrets - name: Validate and start the complete stack run: | docker compose --env-file .env config --quiet docker compose --env-file .env up -d --build --wait - name: Run public API smoke test run: make test - name: Verify the telemetry path run: make test-observability-grade4 - name: Show service state and logs on failure if: failure() run: | docker compose ps -a docker compose logs --no-color --tail=300 - name: Remove ephemeral CI resources if: always() run: docker compose down --volumes --remove-orphans