Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ concurrency:
jobs:
fluence-js:
uses: ./.github/workflows/tests.yml
with:
ref: ${{ github.ref }}

snapshot:
uses: ./.github/workflows/snapshot.yml
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Publish snapshot

on:
workflow_call:
inputs:
avm-version:
description: "@fluencelabs/avm version"
type: string
outputs:
fluence-js-version:
description: "FluenceJS snapshot version"
description: "@fluencelabs/fluence version"
value: ${{ jobs.publish-snapshot.outputs.fluence-js-version }}

env:
Expand All @@ -26,16 +30,24 @@ jobs:
steps:
- name: Checkout fluence-js
uses: actions/checkout@v3
with:
repository: fluencelabs/fluence-js

- uses: pnpm/action-setup@v2.2.2
with:
version: 7

- name: Setup node with self-hosted npm registry
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "16"
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 -r build
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
description: "rust-peer image tag"
type: string
default: "fluencelabs/fluence:minimal"
ref:
avm-version:
description: "@fluencelabs/avm version"
type: string
default: "master"

env:
RUST_PEER_IMAGE: "${{ inputs.rust-peer-image }}"
Expand Down Expand Up @@ -56,7 +56,6 @@ jobs:
uses: actions/checkout@v3
with:
repository: fluencelabs/fluence-js
ref: ${{ inputs.ref }}

- name: Setup docker-compose
uses: KengoTODA/actions-setup-docker-compose@v1.0.9
Expand All @@ -77,10 +76,17 @@ jobs:
with:
version: 7

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- name: Setup node ${{ matrix.node-version }} with self-hosted registry
uses: actions/setup-node@v3
with:
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 -r build
Expand Down