-
Notifications
You must be signed in to change notification settings - Fork 403
34 lines (31 loc) · 975 Bytes
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: ubuntu
on:
pull_request:
push:
branches:
- master
- trigger
jobs:
tests:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up packages
run: sudo apt-get install -y shellcheck docker-compose
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install flake8
run: python -m pip install flake8
- 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'