mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
9f8c7199ea
* startrefactoring the event system * refactor: blockquotes, code blocks and links refactored * refactor codeblock to new event system * refactor subparser until ghcode to new events * finish adating ghcodeblock to new event * add headings to new events * add image to event system * add emphasisAndStrong to event system * fix wrong event name in emphasisAndStrong onEnd event * spanGamut and build * showdown.helper.event refactored to showdown.Event * partial * add links * add metadata * add strikethrough and table * build * add underline * add unescapeSpecialChars * small refactoring * remove old tables parser * add lists * add simple event trigger tests * build * fix browserstack * fix browserstack * remove testing for ie11 and bumped firefox min version to 45 * fixes and closes #920 * build
64 lines
2.1 KiB
YAML
64 lines
2.1 KiB
YAML
name: 'BrowserStack Test'
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, develop ]
|
|
pull_request:
|
|
branches: [ master, develop ]
|
|
|
|
jobs:
|
|
ubuntu-job:
|
|
name: 'BrowserStack Test on Ubuntu'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: set up env vars
|
|
# Only the first line of commit msg
|
|
run: echo "COMMIT_MSG=$(printf "%s" "${{ github.event.head_commit.message }}" | head -n 1)" >> $GITHUB_ENV
|
|
|
|
- name: '📦 Checkout the repository'
|
|
uses: actions/checkout@v2
|
|
|
|
- name: '🚚 Upgrade NPM'
|
|
run: npm install -g npm
|
|
|
|
- name: '⚙ Setup Node.js v16.x'
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16.x
|
|
cache: 'npm'
|
|
|
|
- name: '📖 Get current package version'
|
|
id: package-version
|
|
uses: martinbeentjes/npm-get-version-action@v1.2.3
|
|
|
|
- name: '📝 Print build version and commit msg'
|
|
run: 'printf "version: %s\n build:%s\n message:%s\n" "${{ steps.package-version.outputs.current-version}}" "${{ github.run_id }}" "$COMMIT_MSG"'
|
|
|
|
- name: '📱 BrowserStack Env Setup' # Invokes the setup-env action
|
|
uses: browserstack/github-actions/setup-env@master
|
|
with:
|
|
username: ${{ secrets.BROWSERSTACK_USERNAME }}
|
|
access-key: ${{ secrets.BROWSERSTACK_ACCESSKEY }}
|
|
project-name: 'showdown'
|
|
build-name: ${{ steps.package-version.outputs.current-version}}-${{ github.run_id }}
|
|
|
|
- name: '🚇 BrowserStack Local Tunnel Setup' # Invokes the setup-local action
|
|
uses: browserstack/github-actions/setup-local@master
|
|
with:
|
|
local-testing: start
|
|
local-identifier: random
|
|
|
|
- name: '🚚 Install dependencies for CI'
|
|
run: npm ci
|
|
|
|
- name: '🏗 Building src files for testing'
|
|
run: npx grunt concat:test
|
|
|
|
- name: '✅ Running test on BrowserStack with Karma'
|
|
run: npx karma start karma.browserstack.js
|
|
|
|
- name: '🛑 BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
|
|
uses: browserstack/github-actions/setup-local@master
|
|
with:
|
|
local-testing: stop
|