ci: verify and deploy lab5
This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
|||||||
- name: Check formatting and shell scripts
|
- name: Check formatting and shell scripts
|
||||||
run: |
|
run: |
|
||||||
test -z "$(gofmt -l cmd internal migrations)"
|
test -z "$(gofmt -l cmd internal migrations)"
|
||||||
sh -n infra/minio/bootstrap.sh scripts/restart.sh scripts/rolling-update.sh scripts/stop-one.sh
|
sh -n infra/minio/bootstrap.sh scripts/restart.sh scripts/rolling-update.sh scripts/stop-one.sh scripts/test-lab5.sh scripts/test-lab5-acceptance.sh
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v7
|
uses: golangci/golangci-lint-action@v7
|
||||||
@@ -80,6 +80,8 @@ jobs:
|
|||||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://nginx:8080
|
make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://nginx:8080
|
||||||
make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://nginx:8080
|
make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://nginx:8080
|
||||||
docker compose up -d --scale api=2 --wait --wait-timeout 90
|
docker compose up -d --scale api=2 --wait --wait-timeout 90
|
||||||
|
make test-lab5-acceptance
|
||||||
|
make test-lab5
|
||||||
|
|
||||||
- name: Container logs
|
- name: Container logs
|
||||||
if: failure()
|
if: failure()
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
- name: Check formatting and shell scripts
|
- name: Check formatting and shell scripts
|
||||||
run: |
|
run: |
|
||||||
test -z "$(gofmt -l cmd internal migrations)"
|
test -z "$(gofmt -l cmd internal migrations)"
|
||||||
sh -n infra/minio/bootstrap.sh scripts/restart.sh scripts/rolling-update.sh scripts/stop-one.sh
|
sh -n infra/minio/bootstrap.sh scripts/restart.sh scripts/rolling-update.sh scripts/stop-one.sh scripts/test-lab5.sh scripts/test-lab5-acceptance.sh
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v7
|
uses: golangci/golangci-lint-action@v7
|
||||||
@@ -93,6 +93,8 @@ jobs:
|
|||||||
go run ./cmd/dependencycheck -base-url=http://nginx:8080
|
go run ./cmd/dependencycheck -base-url=http://nginx:8080
|
||||||
make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://nginx:8080
|
make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://nginx:8080
|
||||||
make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://nginx:8080
|
make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://nginx:8080
|
||||||
|
make test-lab5-acceptance
|
||||||
|
make test-lab5
|
||||||
|
|
||||||
- name: Publish verified images
|
- name: Publish verified images
|
||||||
id: publish
|
id: publish
|
||||||
|
|||||||
Reference in New Issue
Block a user