Skip to content

Commit 6adbe74

Browse files
committed
disable massa-web3 integ test for release
1 parent f3264dc commit 6adbe74

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/massa-web3-integration.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
working-directory: ./sandbox
3232

3333
- name: Check massa-web3 version consistency
34+
id: check-versions
3435
run: |
3536
ROOT_VERSION=$(node -p "require('./package-lock.json').packages['node_modules/@massalabs/massa-web3'].version" 2>/dev/null || echo "not-found")
3637
SANDBOX_VERSION=$(node -p "require('./sandbox/package-lock.json').packages['node_modules/@massalabs/massa-web3'].version" 2>/dev/null || echo "not-found")
@@ -49,18 +50,31 @@ jobs:
4950
5051
echo "✅ @massalabs/massa-web3 versions match: $ROOT_VERSION"
5152
53+
# Check if either version is a dev version
54+
if [[ "$ROOT_VERSION" == *"-dev."* ]]; then
55+
echo "🔍 Dev version detected, proceeding with checks..."
56+
echo "is-dev=true" >> $GITHUB_OUTPUT
57+
else
58+
echo "ℹ️ No dev version detected, skipping checks"
59+
echo "is-dev=false" >> $GITHUB_OUTPUT
60+
exit 0
61+
fi
62+
5263
- name: Update massa-web3 to dev version
64+
if: steps.check-versions.outputs.is-dev == 'true'
5365
run: npm install @massalabs/massa-web3@dev
5466
working-directory: ./sandbox
5567

5668
- name: Build sandbox project
69+
if: steps.check-versions.outputs.is-dev == 'true'
5770
run: npm run build
5871
working-directory: ./sandbox
5972

6073
- name: Notify on failure
61-
if: failure()
74+
if: failure() && steps.check-versions.outputs.is-dev == 'true'
6275
run: |
6376
echo "::error::Daily build with @massalabs/massa-web3@dev failed!"
6477
echo "This indicates a potential compatibility issue with the latest development version."
6578
echo "Try to update @massalabs/massa-web3@dev in package.json and sandbox/package.json"
79+
echo "Check if @massalabs/react-ui-kit version in sandbox/package.json needs to be updated"
6680
exit 1

0 commit comments

Comments
 (0)