Skip to content

Commit b91ff6c

Browse files
authored
Remove codacy (#235)
* Remove codacy
1 parent 77c45cb commit b91ff6c

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

.github/workflows/workflow.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ jobs:
2727
- name: Build and run containers
2828
run: docker-compose up --build -d
2929

30-
# FIXME: This action is unmaintained.
31-
- name: Wait untill service started (replace with health status check)
32-
uses: jakejarvis/[email protected]
33-
with:
34-
time: '10s'
35-
3630
- name: Run acceptance tests
3731
run: npm run test:acceptance
3832

@@ -48,8 +42,3 @@ jobs:
4842
env:
4943
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5044
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
51-
52-
- name: Codacy Coverage Reporter
53-
uses: codacy/codacy-coverage-reporter-action@v1
54-
with:
55-
project-token: ${{ secrets.CODACY_TOKEN }}

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Backend app for [Visual Regression Tracker](https://github.com/Visual-Regression-Tracker/Visual-Regression-Tracker)
22

3-
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7d43b68b39cd41aa830120371be736ad)](https://www.codacy.com/gh/Visual-Regression-Tracker/backend?utm_source=github.com&utm_medium=referral&utm_content=Visual-Regression-Tracker/backend&utm_campaign=Badge_Grade)
4-
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/7d43b68b39cd41aa830120371be736ad)](https://www.codacy.com/gh/Visual-Regression-Tracker/backend?utm_source=github.com&utm_medium=referral&utm_content=Visual-Regression-Tracker/backend&utm_campaign=Badge_Coverage)
5-
63
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=Visual-Regression-Tracker_backend&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=Visual-Regression-Tracker_backend)
74
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Visual-Regression-Tracker_backend&metric=coverage)](https://sonarcloud.io/summary/new_code?id=Visual-Regression-Tracker_backend)
85

docker-compose.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ services:
1616
expose:
1717
- "${APP_PORT}"
1818
depends_on:
19-
- postgres
19+
postgres:
20+
condition: service_healthy
2021
migration:
2122
container_name: vrt_migration
2223
build:
@@ -25,7 +26,8 @@ services:
2526
environment:
2627
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
2728
depends_on:
28-
- postgres
29+
postgres:
30+
condition: service_healthy
2931
postgres:
3032
container_name: postgres
3133
image: postgres:15.3-alpine3.18
@@ -40,20 +42,25 @@ services:
4042
- "${POSTGRES_PORT}"
4143
volumes:
4244
- postgres:/var/lib/postgresql/data
43-
45+
healthcheck:
46+
test: ["CMD-SHELL", "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER"]
47+
interval: 10s
48+
timeout: 120s
49+
retries: 10
4450
# Available at http://localhost:5050
45-
pgadmin:
46-
container_name: pgadmin4
47-
# https://hub.docker.com/r/dpage/pgadmin4
48-
# https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_7_4.html
49-
image: dpage/pgadmin4:7.4
50-
restart: always
51-
environment:
52-
PGADMIN_DEFAULT_EMAIL: [email protected]
53-
PGADMIN_DEFAULT_PASSWORD: root
54-
ports:
55-
- "5050:80"
56-
depends_on:
57-
- postgres
51+
# pgadmin:
52+
# container_name: pgadmin4
53+
# # https://hub.docker.com/r/dpage/pgadmin4
54+
# # https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_7_4.html
55+
# image: dpage/pgadmin4:7.4
56+
# restart: always
57+
# environment:
58+
# PGADMIN_DEFAULT_EMAIL: [email protected]
59+
# PGADMIN_DEFAULT_PASSWORD: root
60+
# ports:
61+
# - "5050:80"
62+
# depends_on:
63+
# postgres:
64+
# condition: service_healthy
5865
volumes:
5966
postgres:

0 commit comments

Comments
 (0)