Skip to content

Fix browserstack tests #7594

Fix browserstack tests

Fix browserstack tests #7594

Workflow file for this run

name: CI
on:
push:
branches:
- main
- beta
- release
# release branches
- release*
- lts*
# nightly ci cron branches
- cron*
tags:
- 'v*'
paths-ignore:
- 'CHANGELOG.md'
pull_request:
jobs:
browserstack-test:
name: Browserstack Tests (Safari, Edge)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: yarn
- name: install dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: build
env:
DISABLE_SOURCE_MAPS: true
BROCCOLI_ENV: production
SHOULD_TRANSPILE: true
run: yarn ember build
- name: Set BrowserStack Local Identifier
if: startsWith(github.ref, 'refs/tags/v')
run: |
BROWSERSTACK_LOCAL_IDENTIFIER="$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT"
echo "BROWSERSTACK_LOCAL_IDENTIFIER=$BROWSERSTACK_LOCAL_IDENTIFIER" >> $GITHUB_ENV
- name: test:browserstack
env:
BROWSERSTACK_USERNAME: emberjscoreteam1
# This is in plaintext on purpose. It has no privileged access to anything (this is a free
# account) and it allows us to run browserstack tests against PRs.
BROWSERSTACK_ACCESS_KEY: o5LNEdygq1SP4L9kst4s
run: yarn test:browserstack