2019-09-26 15:25:26 +02:00
|
|
|
name: BrowserStack
|
2020-10-29 18:26:15 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-03-22 08:03:51 +01:00
|
|
|
branches:
|
2023-03-22 09:20:31 +01:00
|
|
|
- "**"
|
2023-03-22 08:22:37 +01:00
|
|
|
- "!dependabot/**"
|
2021-12-02 22:02:11 +01:00
|
|
|
workflow_dispatch:
|
2020-10-29 18:26:15 +01:00
|
|
|
|
2019-09-26 15:25:26 +02:00
|
|
|
env:
|
2020-11-23 20:32:25 +01:00
|
|
|
FORCE_COLOR: 2
|
2022-11-13 15:19:29 +01:00
|
|
|
NODE: 18
|
2019-09-26 15:25:26 +02:00
|
|
|
|
2022-12-16 08:20:12 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2019-09-26 15:25:26 +02:00
|
|
|
jobs:
|
|
|
|
browserstack:
|
|
|
|
runs-on: ubuntu-latest
|
2023-03-22 08:03:51 +01:00
|
|
|
if: github.repository == 'twbs/bootstrap'
|
2020-12-10 10:52:22 +01:00
|
|
|
timeout-minutes: 30
|
2019-09-26 15:25:26 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2022-03-02 15:51:46 +01:00
|
|
|
uses: actions/checkout@v3
|
2022-11-09 08:21:55 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2019-09-26 15:25:26 +02:00
|
|
|
|
2020-10-29 18:26:15 +01:00
|
|
|
- name: Set up Node.js
|
2022-03-01 14:19:34 +01:00
|
|
|
uses: actions/setup-node@v3
|
2019-09-26 15:25:26 +02:00
|
|
|
with:
|
|
|
|
node-version: "${{ env.NODE }}"
|
2021-07-19 17:38:49 +02:00
|
|
|
cache: npm
|
2019-09-26 15:25:26 +02:00
|
|
|
|
|
|
|
- name: Install npm dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Run dist
|
|
|
|
run: npm run dist
|
|
|
|
|
|
|
|
- name: Run BrowserStack tests
|
|
|
|
run: npm run js-test-cloud
|
|
|
|
env:
|
|
|
|
BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
|
|
|
|
BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"
|
2021-08-30 15:30:51 +02:00
|
|
|
GITHUB_SHA: "${{ github.sha }}"
|