Skip to content

Commit

Permalink
Run marlowe-scaling as part of nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Mar 27, 2023
1 parent 52f2343 commit 27dc0b6
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/nightly.yml
Expand Up @@ -4,6 +4,7 @@ env:
ALLOWED_URIS: "https://github.com https://api.github.com"
TRUSTED_PUBLIC_KEYS: "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= marlowe-temp.cachix.org-1:1gPjVFpu4QjaAT3tRurCioX+BC23V7mjvFwpP5bV0Ec= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk="
SUBSTITUTERS: "https://cache.nixos.org/ https://cache.iog.io https://marlowe-temp.cachix.org https://cache.zw3rk.com/"
ENVIRONMENT: preview

on:
schedule:
Expand Down Expand Up @@ -57,3 +58,75 @@ jobs:
:
done
result/bin/marlowe-finder --end-at-tip
marlowe-scaling:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
install_url: https://releases.nixos.org/nix/nix-2.10.3/install
extra_nix_config: |
allowed-uris = ${{ env.ALLOWED_URIS }}
trusted-public-keys = ${{ env.TRUSTED_PUBLIC_KEYS }}
substituters = ${{ env.SUBSTITUTERS }}
experimental-features = nix-command flakes
- name: Setup Cachix
uses: cachix/cachix-action@v12
with:
name: ${{ env.CACHE_NAME }}
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- name: Build Marlowe Scaling
run: |
nix build .#marlowe.haskell.packages.marlowe-apps.components.exes.marlowe-scaling
- name: Install SSH keys
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}

- name: Copy Signing Keys
env:
TEST_WALLET_SIGNING_KEYS: {{ secrets.TEST_WALLET_SIGNING_KEYS }}
run: |
i=0
while IFS= read -r key
do
echo $key | jq . > test-wallets/test.$i.skey
i=$((i+1))
done < <(printf '%s\n' "$TEST_WALLET_SIGNING_KEYS")
- name: Run Marlowe Scaling on Preview
run: |
scripts/setup-dev-connection &
while ! nc -zv 127.0.0.1 3700 > /dev/null 2>&1
do
:
done
result/bin/marlowe-scaling 2 \
"$(cat test-wallets/test.0.addr)=test-wallets/test.0.skey" \
"$(cat test-wallets/test.1.addr)=test-wallets/test.1.skey" \
"$(cat test-wallets/test.2.addr)=test-wallets/test.2.skey" \
"$(cat test-wallets/test.3.addr)=test-wallets/test.3.skey" \
"$(cat test-wallets/test.4.addr)=test-wallets/test.4.skey" \
"$(cat test-wallets/test.5.addr)=test-wallets/test.5.skey" \
"$(cat test-wallets/test.6.addr)=test-wallets/test.6.skey" \
"$(cat test-wallets/test.7.addr)=test-wallets/test.7.skey" \
"$(cat test-wallets/test.8.addr)=test-wallets/test.8.skey" \
"$(cat test-wallets/test.9.addr)=test-wallets/test.9.skey" \
"$(cat test-wallets/test.10.addr)=test-wallets/test.10.skey" \
"$(cat test-wallets/test.11.addr)=test-wallets/test.11.skey" \
"$(cat test-wallets/test.12.addr)=test-wallets/test.12.skey" \
"$(cat test-wallets/test.13.addr)=test-wallets/test.13.skey" \
"$(cat test-wallets/test.14.addr)=test-wallets/test.14.skey" \
"$(cat test-wallets/test.15.addr)=test-wallets/test.15.skey" \
"$(cat test-wallets/test.16.addr)=test-wallets/test.16.skey" \
"$(cat test-wallets/test.17.addr)=test-wallets/test.17.skey" \
"$(cat test-wallets/test.18.addr)=test-wallets/test.18.skey" \
"$(cat test-wallets/test.19.addr)=test-wallets/test.19.skey"

0 comments on commit 27dc0b6

Please sign in to comment.