From 6f5a4650481578d6171213adc0e8c660cf300715 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 11 Oct 2023 21:46:11 +0200 Subject: [PATCH] Add Build workspace step to workflows --- .github/workflows/massa-web3-code-snippets.yml | 10 ++++++++++ .../massa-web3-deploy-test-smartContract.yml | 10 +++++++--- packages/massa-web3/src/web3/EventPoller.ts | 12 ++++++------ 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/.github/workflows/massa-web3-code-snippets.yml b/.github/workflows/massa-web3-code-snippets.yml index b56f78c8..51a35388 100644 --- a/.github/workflows/massa-web3-code-snippets.yml +++ b/.github/workflows/massa-web3-code-snippets.yml @@ -29,6 +29,16 @@ jobs: node-version: 18 registry-url: https://registry.npmjs.org + - name: Install dependencies + run: | + npm ci + working-directory: ./ + + - name: Build workspace + run: | + npm ci + working-directory: ./ + - name: Install project dependencies run: | npm i diff --git a/.github/workflows/massa-web3-deploy-test-smartContract.yml b/.github/workflows/massa-web3-deploy-test-smartContract.yml index 3797da49..4301f670 100644 --- a/.github/workflows/massa-web3-deploy-test-smartContract.yml +++ b/.github/workflows/massa-web3-deploy-test-smartContract.yml @@ -23,10 +23,14 @@ jobs: cache-dependency-path: ./contracts/package-lock.json - name: Install dependencies - run: npm install + run: | + npm ci + working-directory: ./ - - name: Build - run: npm run build + - name: Build workspace + run: | + npm ci + working-directory: ./ - name: Deploy run: | diff --git a/packages/massa-web3/src/web3/EventPoller.ts b/packages/massa-web3/src/web3/EventPoller.ts index bf8dd66f..2b5d8869 100644 --- a/packages/massa-web3/src/web3/EventPoller.ts +++ b/packages/massa-web3/src/web3/EventPoller.ts @@ -113,9 +113,9 @@ export class EventPoller extends EventEmitter { } // reset the interval. - this.timeoutId = new Timeout(this.pollIntervalMillis, () => { - this.callback(); - }); + this.timeoutId = new Timeout(this.pollIntervalMillis, () => + this.callback(), + ); } /** @@ -133,9 +133,9 @@ export class EventPoller extends EventEmitter { if (this.timeoutId) { return; } - this.timeoutId = new Timeout(this.pollIntervalMillis, () => { - that.callback(); - }); + this.timeoutId = new Timeout(this.pollIntervalMillis, () => + that.callback(), + ); } /**