chore: Readd registry and fluence-cli [fixes FLU-314] (#563)

* Readd registry and fluence-cli

* Remove status

* Use fluence-cli from branch

* Checkout to branch

* Test

* Update branch

* Use main
This commit is contained in:
Anatolios Laskaris 2023-04-26 15:32:10 +03:00 committed by GitHub
parent 88fd1f3095
commit 789bbe3046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,15 @@ jobs:
with: with:
avm-version: "${{ needs.avm.outputs.version }}" avm-version: "${{ needs.avm.outputs.version }}"
fluence-cli-snapshot:
name: "fluence-cli"
needs:
- js-client
uses: fluencelabs/fluence-cli/.github/workflows/snapshot.yml@main
with:
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
aqua-playground: aqua-playground:
needs: needs:
- js-client - js-client
@ -129,27 +138,22 @@ jobs:
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}" js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
rust-peer-image: "${{ needs.rust-peer-snapshot.outputs.rust-peer-image }}" rust-peer-image: "${{ needs.rust-peer-snapshot.outputs.rust-peer-image }}"
status: registry:
name: "e2e status"
runs-on: ubuntu-latest
if: always()
needs: needs:
- js-client-tests - fluence-cli-snapshot
- aqua-playground - rust-peer-snapshot
steps: uses: fluencelabs/registry/.github/workflows/tests.yml@main
- uses: lwhiteley/dependent-jobs-result-check@v1 with:
id: status rust-peer-image: "${{ needs.rust-peer-snapshot.outputs.rust-peer-image }}"
with: fluence-cli-version: "${{ needs.fluence-cli-snapshot.outputs.version }}"
statuses: failure
dependencies: ${{ toJSON(needs) }}
- name: Log output fluence-cli:
run: | needs:
echo "statuses:" "${{ steps.status.outputs.statuses }}" - rust-peer-snapshot
echo "jobs:" "${{ steps.status.outputs.jobs }}" - js-client
echo "found any?:" "${{ steps.status.outputs.found }}"
- name: Fail run uses: fluencelabs/fluence-cli/.github/workflows/tests.yml@main
if: fromJSON(steps.status.outputs.found) with:
run: exit 1 rust-peer-image: "${{ needs.rust-peer-snapshot.outputs.rust-peer-image }}"
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"