mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-05 03:19:43 +00:00
gh action env vars
This commit is contained in:
2
.github/workflows/test-doc.yml
vendored
2
.github/workflows/test-doc.yml
vendored
@@ -19,6 +19,6 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r tests-requirements.txt
|
||||
npm install -g remark-cli remark-validate-links
|
||||
- name: Run with 1 worker
|
||||
- name: Check the doc
|
||||
run: |
|
||||
./scripts/check-doc.sh
|
||||
|
||||
20
scripts/check-doc.sh
vendored
20
scripts/check-doc.sh
vendored
@@ -12,17 +12,17 @@ find . -type f -iname '*.md' | while read -r line; do
|
||||
./scripts/check_links.py "${line}"
|
||||
done
|
||||
|
||||
## test the doc internal links
|
||||
## https://github.com/remarkjs/remark-validate-links
|
||||
## https://github.com/tcort/markdown-link-check
|
||||
## npm install -g remark-cli remark-validate-links
|
||||
if ! which remark >/dev/null 2>&1; then
|
||||
echo "[WARNING] install \"remark\" to test the doc"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
in_cicd="${GH_WORKFLOW:-}"
|
||||
in_cicd="${GITHUB_WORKFLOW:-}"
|
||||
if [ -n "${in_cicd}" ]; then
|
||||
## test the doc internal links when in CI/CD
|
||||
## https://github.com/remarkjs/remark-validate-links
|
||||
## https://github.com/tcort/markdown-link-check
|
||||
## npm install -g remark-cli remark-validate-links
|
||||
if ! which remark >/dev/null 2>&1; then
|
||||
echo "[WARNING] install \"remark\" to test the doc"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "------------------------"
|
||||
echo "checking internal links"
|
||||
find . -type f -iname '*.md' | while read -r line; do
|
||||
|
||||
4
tests.sh
vendored
4
tests.sh
vendored
@@ -6,10 +6,10 @@
|
||||
set -eu -o errtrace -o pipefail
|
||||
|
||||
cur=$(cd "$(dirname "${0}")" && pwd)
|
||||
in_cicd="${GH_WORKFLOW:-}"
|
||||
in_cicd="${GITHUB_WORKFLOW:-}"
|
||||
|
||||
# patch TERM var in ci/cd
|
||||
if [ -n "${in_cicd}" ]; then
|
||||
# patch TERM var in ci/cd
|
||||
if [ -z "${TERM}" ]; then
|
||||
export TERM="linux"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user