forked from mtusi2026/mtusi2026lab2
28 lines
913 B
YAML
28 lines
913 B
YAML
name: Student application
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
application:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Local synthetic secrets and build
|
|
run: |
|
|
sh scripts/init-env.sh
|
|
docker compose --env-file .env --profile test build
|
|
- name: Start and wait for the new application
|
|
run: docker compose --env-file .env --profile test up -d --wait --wait-timeout 120 api api-expiry
|
|
- name: Public and grade 4 checks
|
|
run: docker compose --profile test run --rm tools sh scripts/run-checks.sh
|
|
- name: Sanitized evidence
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: lab2-evidence
|
|
path: evidence/
|
|
- name: Stop only this test project
|
|
if: always()
|
|
run: docker compose --profile test down
|