browserstack.yml 951 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: BrowserStack
  2. on:
  3. push:
  4. branches:
  5. - "**"
  6. - "!dependabot/**"
  7. workflow_dispatch:
  8. env:
  9. FORCE_COLOR: 2
  10. NODE: 20
  11. permissions:
  12. contents: read
  13. jobs:
  14. browserstack:
  15. runs-on: ubuntu-latest
  16. if: github.repository == 'twbs/bootstrap'
  17. timeout-minutes: 30
  18. steps:
  19. - name: Clone repository
  20. uses: actions/checkout@v4
  21. with:
  22. persist-credentials: false
  23. - name: Set up Node.js
  24. uses: actions/setup-node@v4
  25. with:
  26. node-version: "${{ env.NODE }}"
  27. cache: npm
  28. - name: Install npm dependencies
  29. run: npm ci
  30. - name: Run dist
  31. run: npm run dist
  32. - name: Run BrowserStack tests
  33. run: npm run js-test-cloud
  34. env:
  35. BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
  36. BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"
  37. GITHUB_SHA: "${{ github.sha }}"