forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL, сессии и Valkey — на 4
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user