Skip to content

Commit

Permalink
fix: set hubot peer depdency to the one that works (#17)
Browse files Browse the repository at this point in the history
* fix: set hubot peer depdency to the one that works

* fix: align hubot version

* fix: install latest hubot for test

* Missed one.
  • Loading branch information
joeyguerra authored Jul 29, 2023
1 parent 9b9f712 commit b60ba80
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Install hubot
run: npm i hubot@5.x
run: npm i hubot
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
test:
Expand All @@ -50,7 +50,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm i hubot@5.x
- run: npm i hubot
- run: npm test
release:
needs: [build, test]
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@slack/web-api": "^6.8.1"
},
"peerDependencies": {
"hubot": "^6.x.x"
"hubot": "^7.x.x"
},
"engines": {
"node": ">= 18.16.0",
Expand Down
2 changes: 1 addition & 1 deletion test/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('Adapter', function() {
process.env.HUBOT_SLACK_APP_TOKEN = 'xapp-faketoken';
process.env.HUBOT_SLACK_BOT_TOKEN = 'xoxb-faketoken';

const loadedRobot = loadBot('slack', false, 'Hubot');
const loadedRobot = loadBot('hubot-slack', false, 'Hubot');
await loadedRobot.loadAdapter();

assert.ok(loadedRobot.hearReaction instanceof Function);
Expand Down

0 comments on commit b60ba80

Please sign in to comment.