29 lines
841 B
YAML
29 lines
841 B
YAML
name: solution
|
|
on: [push, pull_request]
|
|
permissions: {contents: read}
|
|
jobs:
|
|
application:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Fresh stack and contract
|
|
run: |
|
|
make up
|
|
make check
|
|
make test
|
|
- name: Real PostgreSQL and race detector
|
|
run: make test-race
|
|
- name: Persistence
|
|
run: make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
|
- name: API failover
|
|
run: make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: solution-evidence
|
|
path: evidence/
|
|
- name: Dispose only this disposable CI stack
|
|
if: always()
|
|
run: docker compose --profile verify down -v --remove-orphans
|