Skip to content

Commit

Permalink
Run tests at least every week (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin authored Apr 19, 2024
1 parent 99dea40 commit a9fbfad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI

'on':
schedule:
- cron: '30 5 * * 1' # Every Monday at 5:30
pull_request:
push:
branches:
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:
run: |
(cd third_party && git clone -b develop --single-branch --depth 1 https://github.com/userver-framework/userver.git)
sudo apt update
sudo apt install --allow-downgrades -y pycodestyle $(cat third_party/userver/scripts/docs/en/deps/${{matrix.os}}.md | tr '\n' ' ')
sudo apt install --allow-downgrades -y pycodestyle postgresql $(cat third_party/userver/scripts/docs/en/deps/${{matrix.os}}.md | tr '\n' ' ')
- name: Setup ccache
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@
name: Docker build

'on':
schedule:
- cron: '30 5 * * 1' # Every Monday at 5:30
pull_request:
push:
branches:
- master
- develop
- feature/**

env:
CMAKE_COMMON_FLAGS: -DUserverGrpc_VERSION=1.51.0

jobs:
tests:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ format:

# Internal hidden targets that are used only in docker environment
--in-docker-start-debug --in-docker-start-release: --in-docker-start-%: install-%
psql 'postgresql://user:password@service-postgres:5432/pg_grpc_service_template_db-1' -f ./postgresql/data/initial_data.sql
psql 'postgresql://user:password@service-postgres:5432/pg_grpc_service_template_db_1' -f ./postgresql/data/initial_data.sql
/home/user/.local/bin/pg_grpc_service_template \
--config /home/user/.local/etc/pg_grpc_service_template/static_config.yaml \
--config_vars /home/user/.local/etc/pg_grpc_service_template/config_vars.docker.yaml
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
container_name: service-postgres
image: postgres:12
environment:
- POSTGRES_DB=pg_grpc_service_template_db-1
- POSTGRES_DB=pg_grpc_service_template_db_1
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
ports:
Expand All @@ -20,7 +20,7 @@ services:
image: ghcr.io/userver-framework/ubuntu-22.04-userver-pg:latest
privileged: true
environment:
- POSTGRES_DB=pg_grpc_service_template_db-1
- POSTGRES_DB=pg_grpc_service_template_db_1
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- PREFIX=${PREFIX:-~/.local}
Expand Down

0 comments on commit a9fbfad

Please sign in to comment.