Skip to content

Commit

Permalink
[#641] Add checks for other binaries as well
Browse files Browse the repository at this point in the history
Problem: We check only tezos-client currently, we need to check other binaries as well

Solution: Add tests for other binaries
  • Loading branch information
PruStephan committed Jul 18, 2023
1 parent 8331d27 commit 0af4a40
Show file tree
Hide file tree
Showing 2 changed files with 270 additions and 5 deletions.
126 changes: 123 additions & 3 deletions .github/workflows/test-fedora-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test Fedora binaries

on:
schedule:
- cron: "0 0 * * *"
- cron: "0 0 0 * * ?"
push:
branches:
- PruStephan/Add_tests_for_packages
Expand All @@ -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
"
149 changes: 147 additions & 2 deletions .github/workflows/test-ubuntu-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test Ubuntu binaries

on:
schedule:
- cron: "0 0 * * *"
- cron: "0 0 0 * * ?"
push:
branches:
- PruStephan/Add_tests_for_packages
Expand All @@ -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
Expand All @@ -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
"

0 comments on commit 0af4a40

Please sign in to comment.