web4er / ubiquibot

Automating DevPool management.
https://github.com/marketplace/ubiquibot
MIT License
0 stars 0 forks source link

QA: Update readme, add instructions for payment permit locally #78

Open web4er opened 1 year ago

web4er commented 1 year ago

Testing changes to scripts made in readme and package.json to be run in terminal

web4er commented 1 year ago

TEST

quickstart instructions should work fine, and give appropriate errors in case of a problem e.g. wrong node version

#!/bin/bash

git clone https://github.com/ubiquity/ubiquibot.git
cd ubiquibot
yarn
yarn build
yarn start:watch

PASSED

web4er commented 1 year ago
web4er@web4er-pc:/tmp$ git clone https://github.com/web4er/ubiquibot.git
Cloning into 'ubiquibot'...
remote: Enumerating objects: 8587, done.
remote: Counting objects: 100% (1616/1616), done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 8587 (delta 1555), reused 1498 (delta 1496), pack-reused 6971
Receiving objects: 100% (8587/8587), 22.71 MiB | 313.00 KiB/s, done.
Resolving deltas: 100% (5632/5632), done.
web4er@web4er-pc:/tmp$ cd ubiquibot
web4er@web4er-pc:/tmp/ubiquibot$ git checkout update-docs
Branch 'update-docs' set up to track remote branch 'update-docs' from 'origin'.
Switched to a new branch 'update-docs'
web4er@web4er-pc:/tmp/ubiquibot$ yarn
yarn install v1.22.19
[1/5] Validating package.json...
error ubiquibot@0.1.2: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.13.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
web4er@web4er-pc:/tmp/ubiquibot$ nvm use
Found '/tmp/ubiquibot/.nvmrc' with version <v20.3.0>
Now using node v20.3.0 (npm v9.6.7)
web4er@web4er-pc:/tmp/ubiquibot$ yarn
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
$ husky install
husky - Git hooks installed
Done in 287.18s.
web4er@web4er-pc:/tmp/ubiquibot$ yarn build
yarn run v1.22.19
$ tsc
$ copyfiles src/assets/images/* lib/
Done in 3.95s.
web4er@web4er-pc:/tmp/ubiquibot$ yarn start:watch
[nodemon] watching 420 files
$ probot run ./lib/src/index.js
INFO (probot): 
INFO (probot): Welcome to Probot!
INFO (probot): Probot is in setup mode, webhooks cannot be received and
INFO (probot): custom routes will not work until APP_ID and PRIVATE_KEY
INFO (probot): are configured in .env.
INFO (probot): Please follow the instructions at http://localhost:3000 to configure .env.
INFO (probot): Once you are done, restart the server.
INFO (probot): 
INFO (server): Running Probot v12.3.1 (Node.js: v20.3.0)
INFO (server): Listening on http://localhost:3000
web4er commented 1 year ago

TEST

yarn start:watch doesn't need prestart script because images have being moved by the build script

PASSED

web4er commented 1 year ago
web4er@web4er-pc:/tmp/ubiquibot$ yarn build
yarn run v1.22.19
$ tsc
$ copyfiles src/assets/images/* lib/
Done in 3.95s.
web4er@web4er-pc:/tmp/ubiquibot$ yarn start:watch
[nodemon] watching 420 files
$ probot run ./lib/src/index.js

  _|    _|  _|_|_|    _|_|_|    _|_|      _|    _|  _|_|_|  _|_|_|_|_|  _|      _|
  _|    _|  _|    _|    _|    _|    _|    _|    _|    _|        _|        _|  _|
  _|    _|  _|_|_|      _|    _|  _|_|    _|    _|    _|        _|          _|
  _|    _|  _|    _|    _|    _|    _|    _|    _|    _|        _|          _|
    _|_|    _|_|_|    _|_|_|    _|_|  _|    _|_|    _|_|_|      _|          _|

INFO (server): Running Probot v12.3.1 (Node.js: v20.3.0)
INFO (server): Forwarding https://smee.io/KDDhRj73Nhd71q99 to http://localhost:3000/
INFO (server): Listening on http://localhost:3000
INFO (server): Connected