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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: '⚙ Setup Node.js v17.x'
|
|
||||||
uses: actions/setup-node@v2
|
|
||||||
with:
|
|
||||||
node-version: 17.x
|
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: '📦 Checkout the repository'
|
- name: '📦 Checkout the repository'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: '🚚 Upgrade NPM'
|
- name: '🚚 Upgrade NPM'
|
||||||
run: npm install -g npm
|
run: npm install -g npm
|
||||||
|
|
||||||
- name: '🚚 Install dependencies for CI'
|
- name: '⚙ Setup Node.js v17.x'
|
||||||
run: npm ci
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
- name: '🏗 Building src files for testing'
|
node-version: 17.x
|
||||||
run: npx grunt concat:test
|
cache: 'npm'
|
||||||
|
|
||||||
- name: '📖 Get current package version'
|
- name: '📖 Get current package version'
|
||||||
uses: martinbeentjes/npm-get-version-action@v1.1.0
|
uses: martinbeentjes/npm-get-version-action@v1.1.0
|
||||||
|
@ -45,10 +39,16 @@ jobs:
|
||||||
local-testing: start
|
local-testing: start
|
||||||
local-identifier: random
|
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
|
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
|
uses: browserstack/github-actions/setup-local@master
|
||||||
with:
|
with:
|
||||||
local-testing: stop
|
local-testing: stop
|
||||||
|
|
Loading…
Reference in New Issue
Block a user