23
23
- ' LICENSE'
24
24
25
25
jobs :
26
-
27
26
test :
28
27
runs-on : ubuntu-latest
29
28
52
51
run : pnpm eslint .
53
52
54
53
- name : Lint Markdown
55
- run : pnpm markdownlint .
54
+ run : pnpm markdownlint .
56
55
57
56
e2etest :
58
57
needs : test
62
61
matrix :
63
62
node-version : [18, 20, 22]
64
63
# [REF]: https://github.com/actions/runner-images
65
- # Q. Why `macos-latest-large`(x86-64) instead of `macos-latest`(arm64)?
64
+ # Q. Why `macos-latest-large`(x86-64) instead of `macos-latest`(arm64)?
66
65
# A. Apple silicon does not support 'nested virtualization' yet,
67
66
# though support *will* be added from M3 + macOS 15.
68
67
# [REF]: https://github.com/douglascamata/setup-docker-macos-action
74
73
- name : Set up pnpm
75
74
uses : pnpm/action-setup@v2
76
75
with :
77
- run_install : false # For cache
76
+ run_install : false # For cache
78
77
79
78
- name : Use Node.js ${{ matrix.node-version }}
80
79
uses : actions/setup-node@v3
@@ -89,19 +88,28 @@ jobs:
89
88
# Currently, docker is not preinstalled on macos runner images.
90
89
if : startsWith(matrix.os, 'macos')
91
90
uses : douglascamata/setup-docker-macos-action@v1-alpha
92
-
93
- - name : Run Local Npm Registry (Verdaccio) On Linux and macOS
91
+
92
+ - name : Run Local Npm Registry (Verdaccio) On Linux and macOS
94
93
if : startsWith(matrix.os, 'windows') == false
95
94
# verdaccio is private npm registry. [link](https://github.com/verdaccio/verdaccio/)
96
95
run : docker compose -f verdaccio/docker-compose.yaml up --wait
97
96
98
97
- name : Run Local Npm Registry (Verdaccio) On Windows
99
98
if : startsWith(matrix.os, 'windows')
100
99
# Q. Why not using docker?
101
- # A. [REF](https://github.com/verdaccio/verdaccio/issues/4808)
100
+ # A. [REF](https://github.com/verdaccio/verdaccio/issues/4808)
102
101
run : |
103
102
pnpm add --global forever verdaccio
104
- forever start verdaccio --config ./verdaccio/config.yaml
103
+ forever start verdaccio --config ./verdaccio/config.yaml
104
+
105
+ - name : Health Check Local Npm Registry On Windows
106
+ if : startsWith(matrix.os, 'windows')
107
+ uses : jtalk/url-health-check-action@v4
108
+ with :
109
+ # Check the following URLs one by one sequentially
110
+ url : http://localhost:4873
111
+ retry-delay : 10s
112
+ max-attempts : 100
105
113
106
114
- name : Publish To Local NPM Registry
107
115
run : |
@@ -135,7 +143,7 @@ jobs:
135
143
- name : Set up pnpm
136
144
uses : pnpm/action-setup@v2
137
145
with :
138
- run_install : false # For cache
146
+ run_install : false # For cache
139
147
140
148
- name : Set Up Node.js
141
149
uses : actions/setup-node@v3
0 commit comments