mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
test: add commit msg as browserstack test name
This lines are just for testing purposes to see if everything in the msg is grabbed or only the first part of the message.
This commit is contained in:
parent
2715e76471
commit
29538dda96
9
.github/workflows/browserstack.yml
vendored
9
.github/workflows/browserstack.yml
vendored
|
@ -1,9 +1,14 @@
|
||||||
name: 'BrowserStack Test'
|
name: 'BrowserStack Test'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master, develop ]
|
branches: [ master, develop ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, develop ]
|
branches: [ master, develop ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
COMMIT_MSG: ${{ github.event.head_commit.message }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ubuntu-job:
|
ubuntu-job:
|
||||||
name: 'BrowserStack Test on Ubuntu'
|
name: 'BrowserStack Test on Ubuntu'
|
||||||
|
@ -26,8 +31,8 @@ jobs:
|
||||||
id: package-version
|
id: package-version
|
||||||
uses: martinbeentjes/npm-get-version-action@v1.1.0
|
uses: martinbeentjes/npm-get-version-action@v1.1.0
|
||||||
|
|
||||||
- name: '📝 Print build version'
|
- name: '📝 Print build version and commit msg'
|
||||||
run: echo ${{ steps.package-version.outputs.current-version}}-${{ github.run_id }}
|
run: echo ${{ steps.package-version.outputs.current-version}}-${{ github.run_id }} $COMMIT_MSG
|
||||||
|
|
||||||
- name: '📱 BrowserStack Env Setup' # Invokes the setup-env action
|
- name: '📱 BrowserStack Env Setup' # Invokes the setup-env action
|
||||||
uses: browserstack/github-actions/setup-env@master
|
uses: browserstack/github-actions/setup-env@master
|
||||||
|
|
|
@ -4,9 +4,9 @@ module.exports = function (config) {
|
||||||
browserStack: {
|
browserStack: {
|
||||||
username: process.env.BROWSERSTACK_USERNAME,
|
username: process.env.BROWSERSTACK_USERNAME,
|
||||||
accessKey: process.env.BROWSERSTACK_ACCESSKEY,
|
accessKey: process.env.BROWSERSTACK_ACCESSKEY,
|
||||||
project: 'showdown',
|
project: process.env.BROWSERSTACK_PROJECT_NAME || 'showdown',
|
||||||
//build: require('./package.json').version,
|
build: process.env.BROWSERSTACK_BUILD_NAME || require('./package.json').version,
|
||||||
name: 'Unit Testing'
|
name: process.env.COMMIT_MSG || 'Unit Testing'
|
||||||
},
|
},
|
||||||
|
|
||||||
// define browsers
|
// define browsers
|
||||||
|
|
Loading…
Reference in New Issue
Block a user