FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
scripts/.github/workflows/browserstack.yml at main · Murali-OpenSource-Projects/scripts · GitHub
Murali-OpenSource-Projects
scripts
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
scripts
/
.github
/
workflows
/
browserstack.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
77 lines (65 loc) · 2.28 KB
Breadcrumbs
scripts
/
.github
/
workflows
/
browserstack.yml
Copy path
File metadata and controls
77 lines (65 loc) · 2.28 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name
:
Browserstack
on
:
pull_request
:
types
:
[opened, synchronize]
push
:
branches
:
-
master
jobs
:
build
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
node-version
:
[16.16]
steps
:
-
name
:
"
BrowserStack Env Setup
"
uses
:
"
browserstack/github-actions/setup-env@master
"
with
:
username
:
${{ secrets.BROWSERSTACK_USERNAME }}
access-key
:
${{ secrets.BROWSERSTACK_ACCESS_KEY }}
-
name
:
"
Start BrowserStackLocal Tunnel
"
uses
:
"
browserstack/github-actions/setup-local@master
"
with
:
local-testing
:
"
start
"
local-logging-level
:
"
all-logs
"
local-identifier
:
"
random
"
-
uses
:
actions/checkout@v2
-
name
:
Prettier Action on PR
if
:
github.event_name == 'pull_request'
uses
:
creyD/prettier_action@v1.0
with
:
prettier_options
:
"
--write {**/*,*}.{js,hbs,html,json,md,yml,css,scss} !.github/workflows/**/* !dist/**/*
"
commit_message
:
"
Run prettier via GitHub Action
"
branch
:
${{ github.head_ref }}
file_pattern
:
"
.
"
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Prettier Action on master
if
:
github.ref == 'refs/heads/master'
uses
:
creyD/prettier_action@v1.0
with
:
prettier_options
:
"
--write {**/*,*}.{js,html,json,md,yml,css,scss} !.github/workflows/**/* !dist/**/*
"
commit_message
:
"
Run prettier via GitHub Action
"
branch
:
master
file_pattern
:
"
.
"
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Use Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v1
with
:
node-version
:
${{ matrix.node-version }}
-
name
:
Run npm ci
run
:
sudo npm ci
-
name
:
Run npm test with BrowserStack Local
run
:
npm run build && node ./test/index.js
env
:
CI
:
true
NODE_ENV
:
test
DEBUG
:
false
LOCATION
:
${{ secrets.LOCATION }}
BROWSERSTACK_USERNAME
:
${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY
:
${{ secrets.BROWSERSTACK_ACCESS_KEY }}
-
name
:
"
Stop BrowserStackLocal
"
uses
:
"
browserstack/github-actions/setup-local@master
"
with
:
local-testing
:
"
stop
"
Back
|
FazBrowse Home
|
New Git URL