Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Apr 19, 2024
1 parent 605dd0f commit b514e1c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

name: '${{matrix.os}}: ${{matrix.info}}'
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v2
with:
Expand All @@ -43,13 +44,31 @@ 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: |
ccache -M 2.0GB
ccache -s
- name: Run postgresql
if: matrix.make == 'test-release'
run: |
sudo service postgresql@14-main stop
sudo service postgresql@12-main stop
sudo sed -i 's/5433/5432/g' /etc/postgresql/12/main/postgresql.conf
sudo sed -i 's/5432/5433/g' /etc/postgresql/14/main/postgresql.conf
sudo service postgresql stop
sudo service postgresql@12-main restart
pg_lsclusters
sudo -u postgres psql --command="CREATE USER uservice_dynconf PASSWORD 'password'" --command="\du"
sudo -u postgres createdb --owner=uservice_dynconf uservice_dynconf
- name: Run migrations
if: matrix.make == 'test-release'
run: |
PGPASSWORD=password psql 'postgresql://uservice_dynconf@localhost:5432/uservice_dynconf' -f ./postgresql/schemas/uservice_dynconf.sql
- name: Run ${{matrix.make}}
run: |
make ${{matrix.make}}
Expand Down

0 comments on commit b514e1c

Please sign in to comment.