TOAST UI Detect Runtime Error Actions
ππ΅οΈββοΈ Detect Runtime Error with browserstack
πΎ How to use
Settings
- 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 });
};
- Get a token from browserstack
- 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
- TOAST UI Chart
- TOAST UI Editor
- TOAST UI Grid
- TOAST UI Calendar
- TOAST UI Image-Editor
- TOAST UI Components