10 runs-on: ubuntu-latest
11 environment: browserstack
13 BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
14 BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
16 name: ${{ matrix.BROWSER }}
18 group: ${{ github.workflow }}-${{ matrix.BROWSER }}
40 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
42 - name: Use Node.js ${{ env.NODE_VERSION }}
43 uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
45 node-version: ${{ env.NODE_VERSION }}
48 uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
51 key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-${{ hashFiles('**/package-lock.json') }}
53 ${{ runner.os }}-node-${{ env.NODE_VERSION }}-npm-lock-
55 - name: Install dependencies
59 run: npm run build:all
61 - name: Pretest script
65 run: npm run test:unit -- -v --browserstack "${{ matrix.BROWSER }}" --run-id ${{ github.run_id }} --isolate --retries 3 --hard-retries 1