Add test requirements to checklists, .dockerignore URLs, root symlink, and Makefile comment
All checks were successful
check / check (push) Successful in 7s
All checks were successful
check / check (push) Successful in 7s
- Add test requirement item to both checklists (must not be a no-op) - Add .dockerignore template URL to Dockerfile items in both checklists - Add REPO_POLICIES.md symlink in repo root pointing to prompts/ - Add comment to Makefile explaining why prettier flags are repeated
This commit is contained in:
parent
e97b48eea4
commit
b5575b9f59
2
Makefile
2
Makefile
@ -1,5 +1,7 @@
|
||||
.PHONY: test lint fmt fmt-check check docker hooks
|
||||
|
||||
# flags are repeated here (also in .prettierrc) so this Makefile works
|
||||
# standalone when copied as a template
|
||||
PRETTIER := yarn run prettier
|
||||
|
||||
test:
|
||||
|
||||
1
REPO_POLICIES.md
Symbolic link
1
REPO_POLICIES.md
Symbolic link
@ -0,0 +1 @@
|
||||
prompts/REPO_POLICIES.md
|
||||
@ -30,7 +30,8 @@ with your task.
|
||||
- [ ] `.editorconfig` exists — fetch from
|
||||
`https://git.eeqj.de/sneak/prompts/raw/branch/main/.editorconfig`
|
||||
- [ ] `Dockerfile` and `.dockerignore` exist; Dockerfile runs `make check` as a
|
||||
build step
|
||||
build step — fetch `.dockerignore` from
|
||||
`https://git.eeqj.de/sneak/prompts/raw/branch/main/.dockerignore`
|
||||
- [ ] Gitea Actions workflow in `.gitea/workflows/` runs `docker build .` on
|
||||
push — reference
|
||||
`https://git.eeqj.de/sneak/prompts/raw/branch/main/.gitea/workflows/check.yml`
|
||||
@ -52,6 +53,8 @@ with your task.
|
||||
`hooks`
|
||||
- [ ] `make check` does not modify any files in the repo
|
||||
- [ ] `make test` has a 30-second timeout
|
||||
- [ ] `make test` runs real tests, not a no-op (at minimum, import/compile
|
||||
check)
|
||||
- [ ] `make check` passes on current branch
|
||||
|
||||
# Formatting
|
||||
|
||||
@ -50,7 +50,8 @@ Template files can be fetched from:
|
||||
- [ ] `LICENSE` file matching the chosen license
|
||||
- [ ] `REPO_POLICIES.md` — fetch from
|
||||
`https://git.eeqj.de/sneak/prompts/raw/branch/main/prompts/REPO_POLICIES.md`
|
||||
- [ ] `Dockerfile` and `.dockerignore`
|
||||
- [ ] `Dockerfile` and `.dockerignore` — fetch `.dockerignore` from
|
||||
`https://git.eeqj.de/sneak/prompts/raw/branch/main/.dockerignore`
|
||||
- All Dockerfiles must run `make check` as a build step
|
||||
- Server: also builds and runs the application
|
||||
- Non-server: brings up dev environment and runs `make check`
|
||||
@ -66,7 +67,7 @@ Template files can be fetched from:
|
||||
|
||||
## Configure Makefile
|
||||
|
||||
- [ ] `make test` — runs project tests (30-second timeout)
|
||||
- [ ] `make test` — runs real tests, not a no-op (30-second timeout)
|
||||
- [ ] `make lint` — runs linter
|
||||
- [ ] `make fmt` — formats code (writes)
|
||||
- [ ] `make fmt-check` — checks formatting (read-only)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user