Allow KUBERNETES_CLUSTER_DOMAIN in patroni #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ubuntu | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up packages | |
run: sudo apt-get install -y shellcheck | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install flake8 and docker-compose | |
run: python -m pip install flake8 docker-compose==1.17.1 | |
- name: Run shellcheck | |
run: find postgres-appliance -name '*.sh' -print0 | xargs -0 shellcheck | |
- name: Run flake8 | |
run: find postgres-appliance -name '*.py' -print0 | xargs -0 python -m flake8 | |
- name: Build spilo docker image | |
run: cd postgres-appliance && docker build -t spilo . | |
- name: Test spilo docker image | |
run: bash postgres-appliance/tests/test_spilo.sh | |
- name: Test USE_OLD_LOCALES | |
run: bash -x postgres-appliance/tests/locales_test/test_locales.sh | |
if: github.event_name == 'push' |