From 0af4a401ee850ef42033dce109f3b935ffc9a902 Mon Sep 17 00:00:00 2001 From: PruStephan Date: Tue, 18 Jul 2023 13:14:58 +0200 Subject: [PATCH] [#641] Add checks for other binaries as well Problem: We check only tezos-client currently, we need to check other binaries as well Solution: Add tests for other binaries --- .github/workflows/test-fedora-binaries.yml | 126 ++++++++++++++++- .github/workflows/test-ubuntu-binaries.yml | 149 ++++++++++++++++++++- 2 files changed, 270 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-fedora-binaries.yml b/.github/workflows/test-fedora-binaries.yml index a22cee097..45da7419c 100644 --- a/.github/workflows/test-fedora-binaries.yml +++ b/.github/workflows/test-fedora-binaries.yml @@ -2,7 +2,7 @@ name: Test Fedora binaries on: schedule: - - cron: "0 0 * * *" + - cron: "0 0 0 * * ?" push: branches: - PruStephan/Add_tests_for_packages @@ -15,12 +15,132 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Tezos repository and install tezos-client + - name: Set up and test tezos-client run: | docker run --rm -i fedora:latest /bin/bash -c " - dnf update -y + sudo dnf update -y sudo dnf install -y 'dnf-command(copr)' sudo dnf copr enable -y @Serokell/Tezos sudo dnf install tezos-client -y sudo tezos-client --version " + + - name: Set up and test tezos-admin-client + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-admin-client -y + sudo tezos-admin-client --version + " + + - name: Set up and test tezos-node + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-node -y + sudo tezos-node --version + " + + - name: Set up and test tezos-signer + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-signer -y + sudo tezos-signer --version + " + + - name: Set up and test tezos-codec + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-codec -y + sudo tezos-codec --version + " + + - name: Set up and test tezos-baker-PtMumbai + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-baker-PtMumbai -y + sudo tezos-baker-PtMumbai --version + " + + - name: Set up and test tezos-accuser-PtMumbai + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-accuser-PtMumbai -y + sudo tezos-accuser-PtMumbai --version + " + + - name: Set up and test tezos-smart-rollup-client-PtMumbai + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-smart-rollup-client-PtMumbai -y + sudo tezos-smart-rollup-client-PtMumbai --version + " + + - name: Set up and test tezos-smart-rollup-node-PtMumbai + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-smart-rollup-node-PtMumbai -y + sudo tezos-smart-rollup-node-PtMumbai --version + " + + - name: Set up and test tezos-baker-PtNairob + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-baker-PtNairob -y + sudo tezos-baker-PtNairob --version + " + + - name: Set up and test tezos-accuser-PtNairob + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-accuser-PtNairob -y + sudo tezos-accuser-PtNairob --version + " + + - name: Set up and test tezos-smart-rollup-client-PtNairob + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-smart-rollup-client-PtNairob -y + sudo tezos-smart-rollup-client-PtNairob --version + " + + - name: Set up and test tezos-smart-rollup-node-PtNairob + run: | + docker run --rm -i fedora:latest /bin/bash -c " + sudo dnf update -y + sudo dnf install -y 'dnf-command(copr)' + sudo dnf copr enable -y @Serokell/Tezos + sudo dnf install tezos-smart-rollup-node-PtNairob -y + sudo tezos-smart-rollup-node-PtNairob --version + " diff --git a/.github/workflows/test-ubuntu-binaries.yml b/.github/workflows/test-ubuntu-binaries.yml index 7e0a3f6f5..8bc213b35 100644 --- a/.github/workflows/test-ubuntu-binaries.yml +++ b/.github/workflows/test-ubuntu-binaries.yml @@ -2,7 +2,7 @@ name: Test Ubuntu binaries on: schedule: - - cron: "0 0 * * *" + - cron: "0 0 0 * * ?" push: branches: - PruStephan/Add_tests_for_packages @@ -15,7 +15,7 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set up install tezos-client and install it + - name: Set up and test tezos-client run: | docker run --rm -i ubuntu:latest /bin/bash -c " apt update -y @@ -26,3 +26,148 @@ jobs: apt-get install tezos-client -y tezos-client --version " + + - name: Set up and test tezos-admin-client + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-admin-client -y + tezos-admin-client --version + " + + - name: Set up and test tezos-node + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-node -y + tezos-node --version + " + + - name: Set up and test tezos-signer + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-signer -y + tezos-signer --version + " + + - name: Set up and test tezos-codec + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-codec -y + tezos-codec --version + " + + - name: Set up and test tezos-baker-PtMumbai + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-baker-PtMumbai -y + tezos-baker-PtMumbai --version + " + + - name: Set up and test tezos-accuser-PtMumbai + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-accuser-PtMumbai -y + tezos-accuser-PtMumbai --version + " + + - name: Set up and test tezos-smart-rollup-client-PtMumbai + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-smart-rollup-client-PtMumbai -y + tezos-smart-rollup-client-PtMumbai --version + " + + - name: Set up and test tezos-smart-rollup-node-PtMumbai + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-smart-rollup-node-PtMumbai -y + tezos-smart-rollup-node-PtMumbai --version + " + + - name: Set up and test tezos-baker-PtNairob + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-baker-PtNairob -y + tezos-baker-PtNairob --version + " + + - name: Set up and test tezos-accuser-PtNairob + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-accuser-PtNairob -y + tezos-accuser-PtNairob --version + " + + - name: Set up and test tezos-smart-rollup-client-PtNairob + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-smart-rollup-client-PtNairob -y + tezos-smart-rollup-client-PtNairob --version + " + + - name: Set up and test tezos-smart-rollup-node-PtNairob + run: | + docker run --rm -i ubuntu:latest /bin/bash -c " + apt update -y + apt install -y software-properties-common + apt update -y + add-apt-repository -y ppa:serokell/tezos + apt-get update -y + apt-get install tezos-smart-rollup-node-PtNairob -y + tezos-smart-rollup-node-PtNairob --version + " + \ No newline at end of file