nhn / toast-ui.detect-runtime-error-actions

🧐 Detect Runtime Error with browserstack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TOAST UI Detect Runtime Error Actions

πŸžπŸ•΅οΈβ€β™‚οΈ Detect Runtime Error with browserstack

GitHub release GitHub license PRs welcome code with hearth by NHN

image

πŸ’Ύ How to use

Settings

  1. Add a global variable to the page you want to test. (If you use tuidoc, you don't need to add a variable.) Remember the variable name used here!
var errorLogs = [];
window.onerror = function (o, r, e, n) {
  errorLogs.push({ message: o, source: r, lineno: e, colno: n });
};
  1. Get a token from browserstack
  2. Register the token in the github secret

Register action

- name: detect runtime error
  uses: nhn/toast-ui.detect-runtime-error-actions@master
  with:
    global-error-log-variable: 'errorLogs' # Global variable name specified above
    urls: 'http://nhn.github.io/tui.image-editor/latest/examples/example01-includeUi.html, http://nhn.github.io/tui.image-editor/latest/examples/example02-useApiDirect.html' # List the urls you want to test with,
    browserlist: 'ie8, ie9, ie10, ie11, edge, safari, firefox, chrome' # List the browser you want to test with,
  env:
    BROWSERSTACK_USERNAME: ${{secrets.BROWSERSTACK_USERNAME}} # browserstack username
    BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}} # browserstack accesskey

🍞 TOAST UI Family

πŸ“œ License

This software is licensed under the MIT Β© NHN.

About

🧐 Detect Runtime Error with browserstack


Languages

Language:JavaScript 100.0%