mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-03-15 15:30:49 +00:00
chore: Prepare for Aquavm/aqua E2E (#182)
* Prepare for aquavm e2e * Checkout to fluence-js repo * Updates * Use cache * Fix setting up node version
This commit is contained in:
parent
3d02c67fd8
commit
73bce39621
2
.github/workflows/run-tests.yml
vendored
2
.github/workflows/run-tests.yml
vendored
@ -12,8 +12,6 @@ concurrency:
|
|||||||
jobs:
|
jobs:
|
||||||
fluence-js:
|
fluence-js:
|
||||||
uses: ./.github/workflows/tests.yml
|
uses: ./.github/workflows/tests.yml
|
||||||
with:
|
|
||||||
ref: ${{ github.ref }}
|
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
uses: ./.github/workflows/snapshot.yml
|
uses: ./.github/workflows/snapshot.yml
|
||||||
|
16
.github/workflows/snapshot.yml
vendored
16
.github/workflows/snapshot.yml
vendored
@ -2,9 +2,13 @@ name: Publish snapshot
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
avm-version:
|
||||||
|
description: "@fluencelabs/avm version"
|
||||||
|
type: string
|
||||||
outputs:
|
outputs:
|
||||||
fluence-js-version:
|
fluence-js-version:
|
||||||
description: "FluenceJS snapshot version"
|
description: "@fluencelabs/fluence version"
|
||||||
value: ${{ jobs.publish-snapshot.outputs.fluence-js-version }}
|
value: ${{ jobs.publish-snapshot.outputs.fluence-js-version }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@ -26,16 +30,24 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout fluence-js
|
- name: Checkout fluence-js
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: fluencelabs/fluence-js
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v2.2.2
|
- uses: pnpm/action-setup@v2.2.2
|
||||||
with:
|
with:
|
||||||
version: 7
|
version: 7
|
||||||
|
|
||||||
- name: Setup node with self-hosted npm registry
|
- name: Setup node with self-hosted npm registry
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "16"
|
node-version: "16"
|
||||||
registry-url: "https://npm.fluence.dev"
|
registry-url: "https://npm.fluence.dev"
|
||||||
|
cache: "pnpm"
|
||||||
|
|
||||||
|
- name: Set avm version from branch
|
||||||
|
if: inputs.avm-version != ''
|
||||||
|
working-directory: packages/fluence-js
|
||||||
|
run: pnpm add @fluencelabs/avm@${{ inputs.avm-version }}
|
||||||
|
|
||||||
- run: pnpm i
|
- run: pnpm i
|
||||||
- run: pnpm -r build
|
- run: pnpm -r build
|
||||||
|
16
.github/workflows/tests.yml
vendored
16
.github/workflows/tests.yml
vendored
@ -7,9 +7,9 @@ on:
|
|||||||
description: "rust-peer image tag"
|
description: "rust-peer image tag"
|
||||||
type: string
|
type: string
|
||||||
default: "fluencelabs/fluence:minimal"
|
default: "fluencelabs/fluence:minimal"
|
||||||
ref:
|
avm-version:
|
||||||
|
description: "@fluencelabs/avm version"
|
||||||
type: string
|
type: string
|
||||||
default: "master"
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUST_PEER_IMAGE: "${{ inputs.rust-peer-image }}"
|
RUST_PEER_IMAGE: "${{ inputs.rust-peer-image }}"
|
||||||
@ -56,7 +56,6 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: fluencelabs/fluence-js
|
repository: fluencelabs/fluence-js
|
||||||
ref: ${{ inputs.ref }}
|
|
||||||
|
|
||||||
- name: Setup docker-compose
|
- name: Setup docker-compose
|
||||||
uses: KengoTODA/actions-setup-docker-compose@v1.0.9
|
uses: KengoTODA/actions-setup-docker-compose@v1.0.9
|
||||||
@ -77,10 +76,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: 7
|
version: 7
|
||||||
|
|
||||||
- name: Setup Node.js ${{ matrix.node-version }}
|
- name: Setup node ${{ matrix.node-version }} with self-hosted registry
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
registry-url: "https://npm.fluence.dev"
|
||||||
|
cache: "pnpm"
|
||||||
|
|
||||||
|
- name: Set avm version from branch
|
||||||
|
if: inputs.avm-version != ''
|
||||||
|
working-directory: packages/fluence-js
|
||||||
|
run: pnpm add @fluencelabs/avm@${{ inputs.avm-version }}
|
||||||
|
|
||||||
- run: pnpm i
|
- run: pnpm i
|
||||||
- run: pnpm -r build
|
- run: pnpm -r build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user