Nightly backward compatibility #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly backward compatibility | ||
on: | ||
schedule: | ||
- cron: "0 2 * * *" | ||
- cron: "0 14 * * *" | ||
workflow_dispatch: | ||
inputs: | ||
total-releases: | ||
description: "Total number of releases to test" | ||
required: true | ||
type: number | ||
default: 3 | ||
cardano-node-version: | ||
description: "Cardano node version used in e2e" | ||
required: true | ||
type: string | ||
default: "10.1.1" | ||
jobs: | ||
prepare-binaries: | ||
runs-on: ubuntu-22.04 | ||
outputs: | ||
tags: ${{ steps.tags-test-lab.outputs.tags }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Download releases artifacts binaries | ||
run: | | ||
Check failure on line 30 in .github/workflows/nightly-backward-compatibility.yml GitHub Actions / Nightly backward compatibilityInvalid workflow file
|
||
./.github/workflows/scripts/download-distribution-binaries.sh ${{ inputs.total-releases } | ||
- name: Build e2e | ||
run: | | ||
cargo build --release --bin mithril-end-to-end | ||
cp ./target/release/mithril-end-to-end ./mithril-binaries/unstable | ||
- name: Upload Mithril binaries | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: mithril-binaries | ||
path: ./mithril-binaries | ||
- name: Prepare test lab tags | ||
id: tags-test-lab | ||
run: | | ||
TAGS=$(cat ./mithril-binaries/tags.json) | ||
echo "Test Lab Tags: $TAGS" | ||
echo "tags=$TAGS" >> $GITHUB_OUTPUT | ||
e2e: | ||
runs-on: ubuntu-22.04 | ||
needs: [prepare-binaries] | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
tag: ${{ fromJSON(needs.prepare-binaries.outputs.tags) }} | ||
node: | ||
[mithril-aggregator, mithril-client, mithril-signer, mithril-relay] | ||
cardano_node_version: ${{ inputs.cardano-node-version }} | ||
run_id: ["#1"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Download binaries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: mithril-binaries | ||
path: ./mithril-binaries | ||
- name: Prepare binaries | ||
run: | | ||
mkdir -p mithril-binaries/e2e | ||
cp ./mithril-binaries/unstable/* ./mithril-binaries/e2e | ||
cp --remove-destination ./mithril-binaries/${{ matrix.tag }}/${{ matrix.node }} ./mithril-binaries/e2e/ | ||
chmod +x ./mithril-binaries/e2e/mithril-aggregator | ||
chmod +x ./mithril-binaries/e2e/mithril-client | ||
chmod +x ./mithril-binaries/e2e/mithril-signer | ||
chmod +x ./mithril-binaries/e2e/mithril-relay | ||
chmod +x ./mithril-binaries/e2e/mithril-end-to-end | ||
mkdir artifacts | ||
- name: Run E2E tests | ||
run: | | ||
./mithril-binaries/e2e/mithril-end-to-end -vvv \\ | ||
--bin-directory ./mithril-binaries/e2e \\ | ||
--work-directory=./artifacts \\ | ||
--devnet-scripts-directory=./mithril-test-lab/mithril-devnet \\ | ||
--cardano-node-version ${{ matrix.cardano_node_version }} |