mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
test: fix browserstack workflow
This commit is contained in:
parent
f37113adca
commit
fab6987e56
26
.github/workflows/browserstack.yml
vendored
26
.github/workflows/browserstack.yml
vendored
|
@ -10,23 +10,17 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: '⚙ Setup Node.js v17.x'
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 17.x
|
||||
cache: 'npm'
|
||||
|
||||
- name: '📦 Checkout the repository'
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: '🚚 Upgrade NPM'
|
||||
run: npm install -g npm
|
||||
|
||||
- name: '🚚 Install dependencies for CI'
|
||||
run: npm ci
|
||||
|
||||
- name: '🏗 Building src files for testing'
|
||||
run: npx grunt concat:test
|
||||
- name: '⚙ Setup Node.js v17.x'
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 17.x
|
||||
cache: 'npm'
|
||||
|
||||
- name: '📖 Get current package version'
|
||||
uses: martinbeentjes/npm-get-version-action@v1.1.0
|
||||
|
@ -45,10 +39,16 @@ jobs:
|
|||
local-testing: start
|
||||
local-identifier: random
|
||||
|
||||
- name: 'Running test on BrowserStack with Karma'
|
||||
- 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
|
||||
- name: '🛑 BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
|
||||
uses: browserstack/github-actions/setup-local@master
|
||||
with:
|
||||
local-testing: stop
|
||||
|
|
Loading…
Reference in New Issue
Block a user