Skip to content

Commit

Permalink
Merge pull request #43 from DeterminateSystems/link-check-readme
Browse files Browse the repository at this point in the history
Provide external link checking for README
  • Loading branch information
lucperkins authored Nov 4, 2024
2 parents afd03f6 + 1732b48 commit 61819e4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ on:
- labeled

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Check external links
run: |
nix develop --command \
lychee README.md
test-modules:
strategy:
matrix:
Expand Down
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,13 @@
default = pkgs.mkShell {
name = "determinate-dev";

buildInputs = with pkgs; [
packages = with pkgs; [
lychee
nixpkgs-fmt

(writeScriptBin "check-readme-links" ''
lychee README.md
'')
];
};
});
Expand Down

0 comments on commit 61819e4

Please sign in to comment.