mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 13:56:44 +00:00
dedicated doc links workflow
This commit is contained in:
24
.github/workflows/test-doc.yml
vendored
Normal file
24
.github/workflows/test-doc.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: test-doc
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
jobs:
|
||||
test-doc:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
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
|
||||
run: |
|
||||
./scripts/check-doc.sh
|
||||
3
.github/workflows/testing.yml
vendored
3
.github/workflows/testing.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Setup Node
|
||||
@@ -21,7 +21,6 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r tests-requirements.txt
|
||||
pip install -r requirements.txt
|
||||
npm install -g remark-cli remark-validate-links
|
||||
sudo apt-get install shellcheck
|
||||
- name: Run with 1 worker
|
||||
run: |
|
||||
|
||||
7
tests.sh
vendored
7
tests.sh
vendored
@@ -55,8 +55,11 @@ coverage combine coverages/*
|
||||
coverage xml
|
||||
|
||||
# test doc
|
||||
echo "checking documentation..."
|
||||
"${cur}"/scripts/check-doc.sh
|
||||
if [ -z "${in_cicd}" ]; then
|
||||
# not in CI/CD
|
||||
echo "checking documentation..."
|
||||
"${cur}"/scripts/check-doc.sh
|
||||
fi
|
||||
|
||||
## done
|
||||
echo "All tests finished successfully"
|
||||
|
||||
Reference in New Issue
Block a user