-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,14 +34,15 @@ jobs: | |
npm install -D --save postcss-cli | ||
npm install -D --save postcss | ||
hugo server --bind 127.0.0.1 & | ||
- name: curl | ||
uses: sozo-design/[email protected] | ||
with: | ||
args: --head -X GET --retry 50 --retry-connrefused --retry-delay 10 http://127.0.0.1:1313/csm-docs/ | ||
- name: wget | ||
uses: wei/wget@v1 | ||
with: | ||
args: --spider -o spider.log -e robots=off -rp http://127.0.0.1:1313/csm-docs/ | ||
- name: Install curl and wget | ||
run: | | ||
sudo apt-get install -y curl | ||
sudo apt-get install -y wget | ||
- name: Wait for Hugo server | ||
run: curl --head -X GET --retry 5 --retry-connrefused --retry-delay 10 http://127.0.0.1:1313/csm-docs/ | ||
- name: Run wget spider | ||
run: | | ||
wget --spider -o spider.log -e robots=off -rp http://127.0.0.1:1313/csm-docs/ | ||
- name: Output logs | ||
run: | | ||
cat spider.log | ||
|