-
-
Notifications
You must be signed in to change notification settings - Fork 291
42 lines (32 loc) · 1.03 KB
/
verify-browserstack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Verify Browserstack
on: pull_request
jobs:
verify-browserstack:
timeout-minutes: 30
name: Verify Browserstack
# Run only from the original repository
# Because this job requires secrets, which cannot be shared with forks
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node 18
uses: actions/setup-node@v3
env:
FORCE_COLOR: 0
with:
node-version: '18'
cache: 'npm'
# Set up GitHub Actions caching for Wireit.
- uses: google/wireit@setup-github-actions-caching/v1
- name: Install Dependencies
run: npm ci
- name: Build packages
run: npm run build
- name: Test
run: |
cd packages/test-runner-browserstack
npm run test
env:
BROWSER_STACK_ACCESS_KEY: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
BROWSER_STACK_USERNAME: ${{ secrets.BROWSER_STACK_USERNAME }}