Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #106 from livepoll/develop
Browse files Browse the repository at this point in the history
Continuous release
  • Loading branch information
marcauberer authored Jun 14, 2021
2 parents ab7909d + 316bfc5 commit f495a56
Show file tree
Hide file tree
Showing 61 changed files with 1,091 additions and 608 deletions.
7 changes: 1 addition & 6 deletions .github/scripts/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
LIVE_POLL_MYSQL_USER: livepoll
LIVE_POLL_MYSQL_PASSWORD: M3uBcPLbM7RmgX4C3wAUej6WPzq886
LIVE_POLL_DEV_URL: localhost:4200
LIVE_POLL_FRONTEND_URL: localhost:4200
LIVE_POLL_SERVER_URL: localhost:8080
LIVE_POLL_MAIL_HOST: ${LIVE_POLL_MAIL_HOST}
LIVE_POLL_MAIL_PORT: ${LIVE_POLL_MAIL_PORT}
Expand All @@ -41,12 +42,6 @@ services:
depends_on:
db:
condition: service_healthy
healthcheck:
test: "curl --fail --silent localhost:8080/actuator/health | grep UP || exit 1"
interval: 10s
timeout: 5s
retries: 10
start_period: 40s

networks:
app-db: {}
1 change: 1 addition & 0 deletions .github/workflows/ci-with-docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
LIVE_POLL_MYSQL_USER: ${{ secrets.API_LIVE_POLL_MYSQL_USER }}
LIVE_POLL_MYSQL_PASSWORD: ${{ secrets.API_LIVE_POLL_MYSQL_PASSWORD }}
LIVE_POLL_DEV_URL: ${{ secrets.API_LIVE_POLL_DEV_URL }}
LIVE_POLL_FRONTEND_URL: ${{ secrets.API_LIVE_POLL_FRONTEND_URL }}
LIVE_POLL_SERVER_URL: ${{ secrets.API_LIVE_POLL_SERVER_URL }}
LIVE_POLL_MAIL_HOST: ${{ secrets.API_LIVE_POLL_MAIL_HOST }}
LIVE_POLL_MAIL_PORT: ${{ secrets.API_LIVE_POLL_MAIL_PORT }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-with-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
LIVE_POLL_MYSQL_USER: ${{ secrets.API_LIVE_POLL_MYSQL_USER }}
LIVE_POLL_MYSQL_PASSWORD: ${{ secrets.API_LIVE_POLL_MYSQL_PASSWORD }}
LIVE_POLL_DEV_URL: ${{ secrets.API_LIVE_POLL_DEV_URL }}
LIVE_POLL_FRONTEND_URL: ${{ secrets.API_LIVE_POLL_FRONTEND_URL }}
LIVE_POLL_SERVER_URL: ${{ secrets.API_LIVE_POLL_SERVER_URL }}
LIVE_POLL_MAIL_HOST: ${{ secrets.API_LIVE_POLL_MAIL_HOST }}
LIVE_POLL_MAIL_PORT: ${{ secrets.API_LIVE_POLL_MAIL_PORT }}
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
LIVE_POLL_MYSQL_USER: ${{ secrets.API_LIVE_POLL_MYSQL_USER }}
LIVE_POLL_MYSQL_PASSWORD: ${{ secrets.API_LIVE_POLL_MYSQL_PASSWORD }}
LIVE_POLL_DEV_URL: ${{ secrets.API_LIVE_POLL_DEV_URL }}
LIVE_POLL_FRONTEND_URL: ${{ secrets.API_LIVE_POLL_FRONTEND_URL }}
LIVE_POLL_SERVER_URL: ${{ secrets.API_LIVE_POLL_SERVER_URL }}
LIVE_POLL_MAIL_HOST: ${{ secrets.API_LIVE_POLL_MAIL_HOST }}
LIVE_POLL_MAIL_PORT: ${{ secrets.API_LIVE_POLL_MAIL_PORT }}
Expand Down Expand Up @@ -61,9 +62,12 @@ jobs:

- name: Install Newman
run: sudo npm i -g newman

- name: API healthcheck
run: curl -sSLf --retry-delay 5 --retry 5 --retry-connrefused --insecure http://example.org > /dev/null

- name: Test Docker Container listing
run: docker ps

- name: Wait for API to come online
run: sleep 20s

- name: Run Newman tests
run: newman run ./postman/Livepoll.postman_collection.json --iteration-count 3 --folder "Integration Test" --insecure
run: newman run ./postman/Livepoll.postman_collection.json --iteration-count 3 --folder "Integration Test" --insecure
4 changes: 2 additions & 2 deletions env/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
image: mysql:8.0
container_name: live-poll-dev-environment-db-mysql
volumes:
- ./volumes/mysql-data:/var/lib/mysql
- ./volumes/mysql-logs:/var/log/mysql
- ~/volumes/mysql-data:/var/lib/mysql
- ~/volumes/mysql-logs:/var/log/mysql
networks:
- mysql-phpmyadmin
ports:
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
<relativePath/>
</parent>
<groupId>de.live-poll</groupId>
<artifactId>api</artifactId>
<version>0.7.0</version>
<version>0.8.0</version>
<name>Live-Poll</name>
<description>API Backend for Live-Poll</description>

Expand All @@ -24,7 +24,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
</dependency>

<dependency>
Expand Down
Loading

0 comments on commit f495a56

Please sign in to comment.