Merge branch 'develop' of github.com:showdownjs/showdown into develop

This commit is contained in:
Antonio 2022-03-28 21:52:54 +03:00
commit 5efc75d894
2 changed files with 10 additions and 5 deletions

View File

@ -1,9 +1,14 @@
name: 'BrowserStack Test'
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
env:
COMMIT_MSG: ${{ github.event.head_commit.message }}
jobs:
ubuntu-job:
name: 'BrowserStack Test on Ubuntu'
@ -26,8 +31,8 @@ jobs:
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.1.0
- name: '📝 Print build version'
run: echo ${{ steps.package-version.outputs.current-version}}-${{ github.run_id }}
- name: '📝 Print build version and commit msg'
run: echo ${{ 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

View File

@ -4,9 +4,9 @@ module.exports = function (config) {
browserStack: {
username: process.env.BROWSERSTACK_USERNAME,
accessKey: process.env.BROWSERSTACK_ACCESSKEY,
project: 'showdown',
//build: require('./package.json').version,
name: 'Unit Testing'
project: process.env.BROWSERSTACK_PROJECT_NAME || 'showdown',
build: process.env.BROWSERSTACK_BUILD_NAME || require('./package.json').version,
name: process.env.COMMIT_MSG || 'Unit Testing'
},
// define browsers