Skip to content

Commit

Permalink
made tiny changes to github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aiantsen committed Apr 8, 2024
1 parent d7f2cd4 commit c7cd198
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/additional_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ jobs:
sudo -u postgres createdb -O zabbix -E Unicode -T template0 zabbix
cat schema.sql | sudo -u zabbix psql zabbix
cat images.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
- name: Start Apache & Nginx
run: |
sudo apache2ctl start
sudo nginx -g "daemon on; master_process on;"
- name: Install python3
run: |
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Additional tests
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/compatibility_50.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-13 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-13 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
- name: Build from sources
run: |
WORKDIR=$(pwd)
Expand Down Expand Up @@ -64,18 +64,18 @@ jobs:
sudo -u postgres createdb -O zabbix -E Unicode -T template0 zabbix
cat schema.sql | sudo -u zabbix psql zabbix
cat images.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
sudo apache2ctl start
- name: Start Zabbix server
run: |
cd /tmp/zabbix-branch
cd /tmp/zabbix-branch
sudo ./src/zabbix_server/zabbix_server -c ./conf/zabbix_server.conf
- name: Start Zabbix agent
run: |
cd /tmp/zabbix-branch
cd /tmp/zabbix-branch
sudo ./src/zabbix_agent/zabbix_agentd -c ./conf/zabbix_agentd.conf
- name: Install python3
run: |
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Wait for Zabbix API
Expand All @@ -91,4 +91,4 @@ jobs:
TBOT_CHAT: ${{ vars.TBOT_CHAT }}
SUBJECT: Compatibility with Zabbix ${{ env.ZABBIX_VERSION }} FAIL
run: |
tail -n1 /tmp/compatibility.log | grep "OK" 1>/dev/null || tail /tmp/compatibility.log | python ./.github/scripts/telegram_msg.py
tail -n1 /tmp/compatibility.log | grep "OK" 1>/dev/null || tail /tmp/compatibility.log | python ./.github/scripts/telegram_msg.py | exit 1
12 changes: 6 additions & 6 deletions .github/workflows/compatibility_60.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
- name: Build from sources
run: |
WORKDIR=$(pwd)
Expand Down Expand Up @@ -60,18 +60,18 @@ jobs:
sudo -u postgres createdb -O zabbix -E Unicode -T template0 zabbix
cat schema.sql | sudo -u zabbix psql zabbix
cat images.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
sudo apache2ctl start
- name: Start Zabbix server
run: |
cd /tmp/zabbix-branch
cd /tmp/zabbix-branch
sudo ./src/zabbix_server/zabbix_server -c ./conf/zabbix_server.conf
- name: Start Zabbix agent
run: |
cd /tmp/zabbix-branch
cd /tmp/zabbix-branch
sudo ./src/zabbix_agent/zabbix_agentd -c ./conf/zabbix_agentd.conf
- name: Install python3
run: |
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Wait for Zabbix API
Expand All @@ -87,4 +87,4 @@ jobs:
TBOT_CHAT: ${{ vars.TBOT_CHAT }}
SUBJECT: Compatibility with Zabbix ${{ env.ZABBIX_VERSION }} FAIL
run: |
tail -n1 /tmp/compatibility.log | grep "OK" 1>/dev/null || tail /tmp/compatibility.log | python ./.github/scripts/telegram_msg.py
tail -n1 /tmp/compatibility.log | grep "OK" 1>/dev/null || tail /tmp/compatibility.log | python ./.github/scripts/telegram_msg.py | exit 1
12 changes: 6 additions & 6 deletions .github/workflows/compatibility_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
- name: Build from sources
run: |
WORKDIR=$(pwd)
Expand Down Expand Up @@ -60,18 +60,18 @@ jobs:
sudo -u postgres createdb -O zabbix -E Unicode -T template0 zabbix
cat schema.sql | sudo -u zabbix psql zabbix
cat images.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
sudo apache2ctl start
- name: Start Zabbix server
run: |
cd /tmp/zabbix-branch
cd /tmp/zabbix-branch
sudo ./src/zabbix_server/zabbix_server -c ./conf/zabbix_server.conf
- name: Start Zabbix agent
run: |
cd /tmp/zabbix-branch
cd /tmp/zabbix-branch
sudo ./src/zabbix_agent/zabbix_agentd -c ./conf/zabbix_agentd.conf
- name: Install python3
run: |
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Wait for Zabbix API
Expand All @@ -87,4 +87,4 @@ jobs:
TBOT_CHAT: ${{ vars.TBOT_CHAT }}
SUBJECT: Compatibility with Zabbix ${{ env.ZABBIX_VERSION }} FAIL
run: |
tail -n1 /tmp/compatibility.log | grep "OK" 1>/dev/null || tail /tmp/compatibility.log | python ./.github/scripts/telegram_msg.py
tail -n1 /tmp/compatibility.log | grep "OK" 1>/dev/null || tail /tmp/compatibility.log | python ./.github/scripts/telegram_msg.py | exit 1
10 changes: 5 additions & 5 deletions .github/workflows/compatibility_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
- name: Build from sources
run: |
WORKDIR=$(pwd)
Expand Down Expand Up @@ -57,18 +57,18 @@ jobs:
sudo -u postgres createdb -O zabbix -E Unicode -T template0 zabbix
cat schema.sql | sudo -u zabbix psql zabbix
cat images.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
sudo apache2ctl start
- name: Start Zabbix server
run: |
cd /tmp/zabbix-branch
sudo ./src/zabbix_server/zabbix_server -c ./conf/zabbix_server.conf
- name: Start Zabbix agent
run: |
cd /tmp/zabbix-branch
cd /tmp/zabbix-branch
sudo ./src/zabbix_agent/zabbix_agentd -c ./conf/zabbix_agentd.conf
- name: Install python3
run: |
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Wait for Zabbix API
Expand All @@ -88,4 +88,4 @@ jobs:
TBOT_CHAT: ${{ vars.TBOT_CHAT }}
SUBJECT: Compatibility with Zabbix ${{ env.ZABBIX_VERSION }} FAIL
run: |
tail -n1 /tmp/compatibility.log | grep "OK" 1>/dev/null || tail /tmp/compatibility.log | python ./.github/scripts/telegram_msg.py
tail -n1 /tmp/compatibility.log | grep "OK" 1>/dev/null || tail /tmp/compatibility.log | python ./.github/scripts/telegram_msg.py | exit 1
6 changes: 3 additions & 3 deletions .github/workflows/integration_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
sudo apt update && sudo apt install -y git sudo gcc make automake pkg-config postgresql-14 libpostgresql-ocaml-dev libxml2-dev libpcre3-dev libevent-dev apache2 libapache2-mod-php php8.1-pgsql php8.1-bcmath php8.1-xml php8.1-gd php8.1-ldap php8.1-mbstring libzip-dev
- name: Build from sources
run: |
WORKDIR=$(pwd)
Expand Down Expand Up @@ -63,10 +63,10 @@ jobs:
sudo -u postgres createdb -O zabbix -E Unicode -T template0 zabbix
cat schema.sql | sudo -u zabbix psql zabbix
cat images.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
cat data.sql | sudo -u zabbix psql zabbix
sudo apache2ctl start
- name: Install python3
run: |
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Wait for Zabbix API
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_getter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
sudo zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
- name: Install python3
run: |
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Integration synchronous test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_sender.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
sudo zabbix_proxy -c /etc/zabbix/zabbix_proxy.conf
- name: Install python3
run: |
run: |
sudo apt-get install -y python3 python3-pip python-is-python3
pip install -r ./requirements.txt
- name: Integration synchronous test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
release:
name: Release new version
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down

0 comments on commit c7cd198

Please sign in to comment.