Skip to content

Commit

Permalink
[#641] Add matrix jobs
Browse files Browse the repository at this point in the history
Problems: Currently test steps run sequentially. Also, their definition is copied for
each step.

Solution: Add matrix jobs, so that all binaries are tested in parallel
  • Loading branch information
PruStephan committed Jul 18, 2023
1 parent 9eb0c24 commit 7fa006b
Showing 1 changed file with 9 additions and 123 deletions.
132 changes: 9 additions & 123 deletions .github/workflows/test-fedora-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,139 +8,25 @@ on:
- PruStephan/Add_tests_for_packages

jobs:
run_script:
test_binaries:
name: Install and test binaries
runs-on: [self-hosted, Linux, X64, nix-with-docker]
strategy:
binaries:
binary: [ tezos-client, tezos-admin-client, tezos-node, tezos-signer, tezos-codec, tezos-baker-PtMumbai, tezos-accuser-PtMumbai, tezos-smart-rollup-client-PtMumbai, tezos-smart-rollup-node-PtMumbai, tezos-baker-PtNairob, tezos-accuser-PtNairob, tezos-smart-rollup-client-PtNairob, tezos-smart-rollup-node-PtNairob]
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up and test tezos-client
- name: Set up and test ${{ binaries.binary }}
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-client -y
sudo tezos-client --version
sudo dnf install $INPUT_BINARY -y
sudo $INPUT_BINARY --version
"
with:
binary: ${{ binaries.binary }}

- 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
"

0 comments on commit 7fa006b

Please sign in to comment.