test: fix browserstack workflow

This commit is contained in:
Estevão Soares dos Santos 2022-03-27 03:59:45 +01:00
parent f37113adca
commit fab6987e56

View File

@ -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