Skip to content

Commit f79dadf

Browse files
committed
ci(checks-docs): moved tests to ci flake. renamed docs/ -> ci/
to run the tests, use `nix flake check -Lv ./ci`
1 parent f92ef1c commit f79dadf

38 files changed

+107
-78
lines changed

.github/workflows/deploy-website.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
uses: DeterminateSystems/nix-installer-action@main
1818
- name: Update Site
1919
run: |
20-
mkdir -p ./_site
21-
nix run --show-trace ./docs -- ./_site
20+
nix run --show-trace ./ci#docs
2221
- name: Upload artifact
2322
uses: actions/upload-pages-artifact@v4
2423
with:

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
- name: Install Nix
3232
uses: DeterminateSystems/nix-installer-action@main
3333

34-
# - name: Setup Nix cache
35-
# uses: DeterminateSystems/magic-nix-cache-action@main
34+
- name: Setup Nix cache
35+
uses: DeterminateSystems/magic-nix-cache-action@main
3636

3737
- name: Run checks
38-
run: nix flake check -Lvv --log-format bar-with-logs
38+
run: nix flake check -Lvv --log-format bar-with-logs ./ci

.github/workflows/update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- name: Update main lockfile
1818
run: |
1919
nix flake update
20-
- name: Update docs lockfile
20+
- name: Update ci lockfile
2121
run: |
22-
nix flake update --flake ./docs
22+
nix flake update --flake ./ci
2323
- name: Create Pull Request
2424
uses: peter-evans/create-pull-request@v8
2525
with:

CONTRIBUTING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,15 @@ So, if this might be important for your program, you can consider providing a di
109109

110110
# Tests
111111

112-
`nix flake check -Lv`
112+
`nix flake check -Lv ./ci`
113+
114+
# Run Documentation Generator
115+
116+
`nix run ./ci`
117+
118+
or
119+
120+
`nix run ./ci#docs`
113121

114122
# Writing tests
115123

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)