Skip to content

Commit 479cbab

Browse files
author
Steven Silvester
authored
Merge pull request #222 from blink1073/cleanup-check-links
Use Check Links Action
2 parents 391ffec + 0616d7a commit 479cbab

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
8282
check_release:
8383
runs-on: ubuntu-latest
84+
strategy:
85+
matrix:
86+
group: [check_release, link_check]
8487
steps:
8588
- name: Checkout
8689
uses: actions/checkout@v2
@@ -130,26 +133,21 @@ jobs:
130133
restore-keys: |
131134
${{ runner.os }}-yarn-
132135
133-
- name: Install dependencies
134-
shell: bash
135-
run: |
136-
set -eux
137-
npm install -g yarn
138-
yarn
139-
140136
- name: Cache checked links
137+
if: ${{ matrix.group == 'link_check' }}
141138
uses: actions/cache@v2
142139
with:
143140
path: ~/.cache/pytest-link-check
144141
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.md') }}-md-links
145142
restore-keys: |
146143
${{ runner.os }}-linkcheck-
147144
148-
- name: Install Dependencies
149-
run: |
150-
yarn
151-
152145
- name: Check Release
146+
if: ${{ matrix.group == 'check_release' }}
153147
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
154148
with:
155149
token: ${{ secrets.GITHUB_TOKEN }}
150+
151+
- name: Run Link Check
152+
if: ${{ matrix.group == 'link_check' }}
153+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"typedoc": "~0.15.0"
3939
},
4040
"jupyter-releaser": {
41+
"skip": ["check-links"],
4142
"options": {
4243
"ignore-links": [
4344
"./api/index.html"

0 commit comments

Comments
 (0)