forked from google/model-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (38 loc) · 1.21 KB
/
unit-tests.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
43
44
45
46
47
48
49
50
51
name: Unit tests
on: [push]
jobs:
full_test_run:
env:
USE_BROWSER_STACK: true
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: 'BrowserStack Env Setup' # Invokes the setup-env action
uses: browserstack/github-actions/setup-env@master
with:
username: ${{ secrets.BROWSER_STACK_USERNAME }}
access-key: ${{ secrets.BROWSER_STACK_ACCESS_KEY }}
- name: 'BrowserStack Local Tunnel Setup' # Invokes the setup-local action
uses: browserstack/github-actions/setup-local@master
with:
local-testing: start
local-identifier: test
local-logging-level: setup-logs
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: NPM install
run: npm ci
# - name: Lint TypeScript sources
# run: npm run lint
- name: Bootstrap packages
run: npm run bootstrap
- name: Build packages
run: npm run build
- name: Unit tests
run: npm run test:ci
- name: 'BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
uses: browserstack/github-actions/setup-local@master
with:
local-testing: stop