chore: Update E2E after fluence-js refactoring (#63)

* Update

* Update
This commit is contained in:
Anatolios Laskaris 2023-03-04 10:12:24 +02:00 committed by GitHub
parent 406c92d105
commit 4a2014ec89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 16 deletions

View File

@ -11,14 +11,14 @@ on:
description: "rust-peer image tag" description: "rust-peer image tag"
type: string type: string
default: "fluencelabs/fluence:minimal" default: "fluencelabs/fluence:minimal"
fluence-js-version:
description: "@fluencejs/fluence version"
type: string
default: "null"
aqua-version: aqua-version:
description: "@fluencejs/aqua version" description: "@fluencejs/aqua version"
type: string type: string
default: "null" default: "null"
js-client-snapshots:
description: "js-client snapshots"
type: string
default: "null"
env: env:
FORCE_COLOR: true FORCE_COLOR: true
@ -81,12 +81,19 @@ jobs:
- run: npm install - run: npm install
- name: Set fluence-js version - name: Set js-client.node version
if: inputs.fluence-js-version != 'null' if: inputs.js-client-snapshots != 'null'
uses: fluencelabs/github-actions/npm-set-dependency@main uses: fluencelabs/github-actions/npm-set-dependency@main
with: with:
package: "@fluencelabs/fluence" package: "@fluencelabs/js-client.node"
version: ${{ inputs.fluence-js-version }} version: ${{ fromJson(inputs.js-client-snapshots)['js-client.node'] }}
- name: Set js-client.api version
if: inputs.js-client-snapshots != 'null'
uses: fluencelabs/github-actions/npm-set-dependency@main
with:
package: "@fluencelabs/js-client.api"
version: ${{ fromJson(inputs.js-client-snapshots)['js-client.api'] }}
- name: Set aqua version - name: Set aqua version
if: inputs.aqua-version != 'null' if: inputs.aqua-version != 'null'
@ -114,12 +121,13 @@ jobs:
cat <<SNAPSHOT >> $GITHUB_STEP_SUMMARY cat <<SNAPSHOT >> $GITHUB_STEP_SUMMARY
## Used versions ## Used versions
| name | version | | name | version |
| ---------- | -------------------------------------------------------------------- | | -------------- | -------------------------------------------------------------------- |
| rust-peer | $(docker run --rm --entrypoint=fluence ${RUST_PEER_IMAGE} --version) | | rust-peer | $(docker run --rm --entrypoint=fluence ${RUST_PEER_IMAGE} --version) |
| avm | $(dasel -f package-lock.json -p json -m --plain 'packages.(?:-=node_modules/@fluencelabs/avm).version') | | avm | $(dasel -f package-lock.json -p json -m --plain 'packages.(?:-=node_modules/@fluencelabs/avm).version') |
| marine-js | $(dasel -f package-lock.json -p json -m --plain 'packages.(?:-=node_modules/@fluencelabs/marine-js).version') | | marine-js | $(dasel -f package-lock.json -p json -m --plain 'packages.(?:-=node_modules/@fluencelabs/marine-js).version') |
| aqua | $(npx aqua --version) | | aqua | $(npx aqua --version) |
| fluence-js | $(dasel -f package-lock.json -p json -m --plain 'packages.(?:-=node_modules/@fluencelabs/fluence).version') | | js-client.api | $(dasel -f package-lock.json -p json -m --plain 'packages.(?:-=node_modules/@fluencelabs/js-client.api).version') |
| js-cluent.node | $(dasel -f package-lock.json -p json -m --plain 'packages.(?:-=node_modules/@fluencelabs/js-client.node).version') |
SNAPSHOT SNAPSHOT
- name: Dump rust-peer logs - name: Dump rust-peer logs