docs: Update security policy #635
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Browsers | |
| permissions: {} | |
| on: | |
| - push | |
| - workflow_dispatch | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: { submodules: true } | |
| - uses: actions/setup-node@v6 | |
| - uses: browserstack/github-actions/setup-env@master | |
| with: | |
| username: ${{ secrets.BROWSERSTACK_USERNAME }} | |
| access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
| project-name: yaml | |
| - uses: browserstack/github-actions/setup-local@master | |
| with: | |
| local-testing: start | |
| local-identifier: random | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm install --no-save @vitest/browser-playwright@4.1.4 | |
| - run: npx vitest run --config=.github/vitest.browserstack.config.js | |
| env: | |
| BROWSERS: chrome:93 chrome:latest firefox:latest | |
| - uses: browserstack/github-actions/setup-local@master | |
| if: always() | |
| with: | |
| local-testing: stop | |
| legacy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: { submodules: true } | |
| - uses: actions/setup-node@v6 | |
| - uses: browserstack/github-actions/setup-env@master | |
| with: | |
| username: ${{ secrets.BROWSERSTACK_USERNAME }} | |
| access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
| project-name: yaml | |
| - uses: browserstack/github-actions/setup-local@master | |
| with: | |
| local-testing: start | |
| local-identifier: random | |
| - run: npm ci | |
| - run: npm run build | |
| - run: npm install --no-save @vitest/browser-playwright@4.1.4 | |
| - run: npx vitest run --config=.github/vitest.browserstack.config.js | |
| env: | |
| BROWSERS: firefox:94 | |
| # BrowserStack is really flaky with this, so most errors here are: | |
| # Error: Failed to connect to the browser session "..." [firefox:94] within the timeout. | |
| continue-on-error: true | |
| timeout-minutes: 10 | |
| - uses: browserstack/github-actions/setup-local@master | |
| if: always() | |
| with: | |
| local-testing: stop |