Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing lychee link-checker #3374

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b531744
Add test lychee gh action
julieg18 Mar 21, 2022
b190d44
Fix typo
julieg18 Mar 21, 2022
30eb3aa
Add args and format
julieg18 Mar 21, 2022
a0c70e7
Update format
julieg18 Mar 21, 2022
62f8a4c
Update format
julieg18 Mar 21, 2022
657bfae
Update format
julieg18 Mar 21, 2022
04d221e
Add output option
julieg18 Mar 24, 2022
49d5c0d
fix broken formatting
julieg18 Mar 24, 2022
2ad9b48
Remove extra options
julieg18 Mar 24, 2022
2d3fd1d
Add -a flag
julieg18 Mar 24, 2022
a79db05
Take off -a flag
julieg18 Mar 24, 2022
02e2505
Insert broken links into test files
julieg18 Mar 25, 2022
6a3c142
Add get-changed-files action
julieg18 Mar 25, 2022
f7568c1
Fix typo
julieg18 Mar 25, 2022
13a8d76
Add echo
julieg18 Mar 25, 2022
7a03036
Revert "Insert broken links into test files"
julieg18 Mar 25, 2022
b7beb3e
Insert broken links
julieg18 Mar 25, 2022
42e189b
Update lychee args
julieg18 Mar 25, 2022
a06cdb6
Add test
julieg18 Mar 25, 2022
e3d7caf
Remove "" in lychee args
julieg18 Mar 25, 2022
648becd
Add broken link
julieg18 Mar 25, 2022
cfbc1d6
Add multiple tests
julieg18 Mar 25, 2022
d91f0d3
Attempt to access output
julieg18 Mar 25, 2022
cafb8d0
Add LYCHEE_OUT env var
julieg18 Mar 25, 2022
2d2add1
Change LYCHEE_OUT to LYCHEE_TMP
julieg18 Mar 25, 2022
63f2518
Take off output name
julieg18 Mar 25, 2022
08a85c9
Take off env
julieg18 Mar 25, 2022
07b2490
Add read output file step
julieg18 Mar 25, 2022
ba99c52
Add run tests
julieg18 Mar 25, 2022
77b33ae
fix bug
julieg18 Mar 25, 2022
660daa2
Delete first test
julieg18 Mar 25, 2022
516d45e
Remove extra tests
julieg18 Mar 25, 2022
145d828
Set up first attempt to check all links
julieg18 Mar 28, 2022
cd56834
Update args
julieg18 Mar 28, 2022
5f5363e
Switch to json
julieg18 Mar 28, 2022
7e2a67d
increase retry wait time to 10 seconds
julieg18 Apr 5, 2022
c08e3c4
Update -r flag
julieg18 Apr 5, 2022
c9ca42e
Move -r flag
julieg18 Apr 5, 2022
8734fa8
Update lychee version
julieg18 Apr 5, 2022
a3fdf91
Increase retry-wait-time
julieg18 Apr 5, 2022
e941109
Update time
julieg18 Apr 6, 2022
6c2aac4
Update time
julieg18 Apr 6, 2022
2977683
Add deployment action
julieg18 Apr 6, 2022
6b75a54
see github context in file
julieg18 Apr 6, 2022
b8534cb
Add pull_request event
julieg18 Apr 6, 2022
e6118e7
Test on list
julieg18 Apr 6, 2022
fd53471
Update naming
julieg18 Apr 6, 2022
bd6b48a
Fix typos
julieg18 Apr 6, 2022
35ee8f1
Fix typo
julieg18 Apr 6, 2022
a526a24
Git branch test
julieg18 Apr 7, 2022
ba4aa46
fix test
julieg18 Apr 7, 2022
4308a4e
fix test
julieg18 Apr 7, 2022
c75ef55
Update test
julieg18 Apr 7, 2022
56479d8
Update test
julieg18 Apr 7, 2022
fee9aef
add fetch depth option
julieg18 Apr 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/link-check-all-lychee.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check all Links with Lychee

on:
workflow_dispatch:
push:

jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args:
--retry-wait-time 20 --verbose --no-progress -b https://dvc.org/
{.github,content,src}/**/*.{css,js,jsx,md,tsx,ts,json}
format: json
output: out.json
37 changes: 37 additions & 0 deletions .github/workflows/link-check-deploy-lychee.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Check PR Links with Lychee

on:
push:
deployment:
deployment_status:

jobs:
linkChecker:
runs-on: ubuntu-latest
# if:
# github.event.deployment.ref != 'master' &&
# github.event.deployment_status.state == 'success'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get Changed Files
run: |
TEST=`git diff --name-only $(git merge-base master HEAD)`
echo $TEST
SPACED="${TEST//$'\n'/ }"
echo $SPACED

- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args:
--retry-wait-time 20 --verbose --no-progress -b ${{
github.event.deployment.payload.web_url }} ${{
steps.edited_files.outputs.all }}
format: json
output: out.json
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Please see our
[Writing a Blog Post guide](https://dvc.org/doc/user-guide/contributing/blog)
for more details on how to write and submit a new blog post.

https://github.com/broken-link-link

https://github.com/broken-link-link

# Getting help

If you have any questions, please join the [community](https://dvc.org/chat) and
Expand Down
2 changes: 2 additions & 0 deletions content/blog/2021-12-13-collaborative-experiments.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ tags:

## Intro

https://github.com/broken-link-link

Sharing experiments to compare machine learning models is important when you're
working with a team of engineers. You might need to get another opinion on an
experiments results. You might need to share a modified dataset or even share
Expand Down
2 changes: 2 additions & 0 deletions content/docs/dvclive/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ machine learning metrics and other metadata in simple file formats, which is
fully compatible with DVC. You can
[install it](https://github.com/iterative/dvclive#installation) with `pip`.

https://github.com/broken-link-link

<cards>

<card href="/doc/dvclive/get-started" heading="Get Started">
Expand Down