forked from mtusi2026/mtusi2026lab5
27 lines
941 B
YAML
27 lines
941 B
YAML
name: Application acceptance
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
application:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: oven-sh/setup-bun@v2
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: '1.27.2'
|
|
cache-dependency-path: backend/go.sum
|
|
- run: ./scripts/up.sh
|
|
- run: bun student-tests/wait.ts
|
|
- run: make check test BASE_URL=http://127.0.0.1:28205
|
|
- run: make test-persistence BASE_URL=http://127.0.0.1:28205 ACTION_SCRIPT=./scripts/restart.sh
|
|
- run: bun student-tests/both-replicas.ts
|
|
- run: ./student-tests/run-db-matrix.sh
|
|
- run: bun student-tests/pipeline-faults.ts --point=after_original --restart-gap
|
|
- run: bun student-tests/pipeline-faults.ts --point=after_commit
|
|
- name: Stop only this stand
|
|
if: always()
|
|
run: ./scripts/compose.sh stop
|