Skip to content

Commit

Permalink
Add Build workspace step to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Oct 11, 2023
1 parent 8ca2076 commit 6f5a465
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/massa-web3-code-snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/massa-web3-deploy-test-smartContract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
12 changes: 6 additions & 6 deletions packages/massa-web3/src/web3/EventPoller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
}

/**
Expand All @@ -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(),
);
}

/**
Expand Down

0 comments on commit 6f5a465

Please sign in to comment.