Skip to content

Commit 68d8787

Browse files
feat(just): add act test-docs recipes
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
1 parent 43ea995 commit 68d8787

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

justfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,40 @@ ghsecrets repo="sciexp/python-nix-template":
6060
pre-commit:
6161
pre-commit run --all-files
6262

63+
# List available workflows and associated jobs using act
64+
[group('CI/CD')]
65+
list-workflows:
66+
@act -l
67+
68+
# Test build-docs job locally with act
69+
[group('CI/CD')]
70+
test-docs-build branch="main":
71+
@echo "Testing docs build job locally (branch: {{branch}})..."
72+
@sops exec-env vars/shared.yaml 'act workflow_dispatch \
73+
-W .github/workflows/deploy-docs.yaml \
74+
-j build-docs \
75+
-s CI_AGE_KEY -s CACHIX_AUTH_TOKEN \
76+
-s GITHUB_TOKEN="$(gh auth token)" \
77+
--var CACHIX_CACHE_NAME \
78+
--artifact-server-path $PWD/.artifacts \
79+
--input debug_enabled=false \
80+
--input branch={{branch}}'
81+
82+
# Test full deploy-docs workflow locally with act
83+
[group('CI/CD')]
84+
test-docs-deploy branch="main":
85+
@echo "Testing full docs deployment workflow locally (branch: {{branch}})..."
86+
@echo "Note: Cloudflare deployment may not work in local environment"
87+
@sops exec-env vars/shared.yaml 'act workflow_dispatch \
88+
-W .github/workflows/deploy-docs.yaml \
89+
-s CI_AGE_KEY -s CACHIX_AUTH_TOKEN \
90+
-s CLOUDFLARE_API_TOKEN -s CLOUDFLARE_ACCOUNT_ID \
91+
-s GITHUB_TOKEN="$(gh auth token)" \
92+
--var CACHIX_CACHE_NAME \
93+
--artifact-server-path $PWD/.artifacts \
94+
--input debug_enabled=false \
95+
--input branch={{branch}}'
96+
6397
## Conda package
6498

6599
# Package commands (conda)

0 commit comments

Comments
 (0)