FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docsify/.github/workflows/test.yml at develop · docsifyjs/docsify · GitHub
docsifyjs
/
docsify
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
5.8k
Star
31.5k
Code
Issues
62
Pull requests
29
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
docsify
/
.github
/
workflows
/
test.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
102 lines (96 loc) · 2.87 KB
Breadcrumbs
docsify
/
.github
/
workflows
/
test.yml
Copy path
File metadata and controls
102 lines (96 loc) · 2.87 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name
:
Build & Test
on
:
push
:
branches
:
[main, develop]
pull_request
:
branches
:
[main, develop]
workflow_dispatch
:
jobs
:
lint
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
node-version
:
['lts/*']
steps
:
-
uses
:
actions/checkout@v7
-
name
:
Setup Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v7
with
:
node-version
:
${{ matrix.node-version }}
cache
:
'
npm
'
-
name
:
Install dependencies
run
:
npm ci --ignore-scripts
-
name
:
Build
run
:
npm run build
-
name
:
Lint
run
:
npm run lint
test-jest
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
node-version
:
['lts/*']
os
:
['macos-latest', 'ubuntu-latest', 'windows-latest']
steps
:
-
uses
:
actions/checkout@v7
-
name
:
Setup Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v7
with
:
node-version
:
${{ matrix.node-version }}
cache
:
'
npm
'
-
name
:
Install dependencies
run
:
npm ci --ignore-scripts
-
name
:
Build
run
:
npm run build
-
name
:
Unit Tests
run
:
npm run test:unit -- --ci --runInBand
-
name
:
Integration Tests
run
:
npm run test:integration -- --ci --runInBand
-
name
:
Consumption Tests
run
:
npm run test:consume-types
test-playwright
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
node-version
:
['lts/*']
timeout-minutes
:
30
steps
:
-
uses
:
actions/checkout@v7
-
name
:
Setup Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v7
with
:
node-version
:
${{ matrix.node-version }}
cache
:
'
npm
'
-
name
:
Install dependencies
run
:
npm ci --ignore-scripts
-
name
:
Build
run
:
npm run build
-
name
:
Install Playwright
run
:
npx playwright install --with-deps
-
name
:
E2E Tests (Playwright)
run
:
npm run test:e2e
#
In the interest of not having to modify GitHub settings to update required
#
builds for passing, I stuck this test here.
-
name
:
Test v4 build
run
:
|
git fetch --tags
npm run build:v4
# ensure v4 build files exist:
test -f lib/docsify.js
test -f themes/pure.css
# ensure no git changes after building v4:
git diff --exit-code
npm run clean:v4
# ensure v4 build files are removed:
test ! -f lib/docsify.js
test ! -f themes/pure.css
# ensure no git changes after cleaning v4:
git diff --exit-code
-
name
:
Store artifacts
uses
:
actions/upload-artifact@v7
if
:
failure()
with
:
name
:
test-artifacts-${{ github.run_id }}-${{ github.run_attempt }}
path
:
|
_playwright-results/
_playwright-report/
Back
|
FazBrowse Home
|
New Git URL