# Install the dependencies, builds the action and creates the config.ini file.
sh setup.sh
Don't forget to edit the config.ini
file.
- Dev mode:
# Dev mode watches for file changes and restarts the action.
npm run dev
- Prod mode:
# 1) Lint, transpile and test.
npm start
# 2) Run the action.
tsc && node action-localtime.js
In the action-localtime.js
file:
// Uncomment this line to print everything
// debug.enable(name + ':*')
Requires mosquitto to be installed.
npm run test
In test mode, i18n output and http calls are mocked.
- http: see
tests/httpMocks/index.ts
- i18n: see
src/factories/i18nFactory.ts