FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
github-docs/.github/workflows/local-dev.yml at main · coolaj86/github-docs · GitHub
coolaj86
/
github-docs
Public
forked from
github/docs
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
github-docs
/
.github
/
workflows
/
local-dev.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
47 lines (37 loc) · 1.52 KB
Breadcrumbs
github-docs
/
.github
/
workflows
/
local-dev.yml
Copy path
File metadata and controls
47 lines (37 loc) · 1.52 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
name
:
Local development
#
**What it does**: Can you start the local server like a writer would do?
#
**Why we have it**: Our CI is often heavily geared on testing in "production"
#
that historically we've been known to break local
#
development sometimes.
#
**Who does it impact**: Engineers, Contributors.
on
:
merge_group
:
pull_request
:
permissions
:
contents
:
read
jobs
:
local-dev
:
if
:
github.repository == 'github/docs-internal' || github.repository == 'github/docs'
runs-on
:
${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
steps
:
-
name
:
Check out repo
uses
:
actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
-
uses
:
./.github/actions/node-npm-setup
#
Note that we don't check out docs-early-access, Elasticsearch,
#
or any remote translations. Nothing fancy here!
-
name
:
Start server in the background
run
:
npm start > /tmp/stdout.log 2> /tmp/stderr.log &
-
name
:
View the home page
run
:
|
echo "Going to sleep a little to wait for the server to start"
sleep 10
curl --fail --retry-connrefused --retry 5 http://localhost:4000/
-
name
:
Run basic tests
run
:
node .github/actions-scripts/test-local-dev.js
-
if
:
${{ failure() }}
name
:
Debug server outputs on errors
run
:
|
echo "____STDOUT____"
cat /tmp/stdout.log
echo "____STDERR____"
cat /tmp/stderr.log
Back
|
FazBrowse Home
|
New Git URL