forked from mtusi2026/mtusi2026lab3
На 5
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
name: Application
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
application:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: service/go.mod
|
||||
cache-dependency-path: service/go.sum
|
||||
- run: make up
|
||||
- run: make build vet test test-go test-storage
|
||||
- run: make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
||||
- run: make test-failover ACTION_SCRIPT=scripts/stop-one.sh
|
||||
- if: always()
|
||||
run: ./scripts/compose.sh down
|
||||
Reference in New Issue
Block a user