Commit graph

20 commits

Author SHA1 Message Date
vladislav doster 8170753a5d
fix: container zshelldoc install (#591) 2023-11-20 05:41:40 -06:00
Vladislav Doster 515688bc97 revert: "Merge branch 'refactor/zinit-function-names' into main"
This reverts commit b979847bd4, reversing
changes made to da924a21a1.

I (@vladdoster) accidentally merged this into the wrong repository. Apologies for the lack of due diligence.
2022-12-17 21:11:41 -06:00
Vladislav Doster 2b460a74f2 fix: vim modelines & zsdoc pdf rendering
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 22:22:48 -06:00
Vladislav Doster c28580c3fc refactor: rename zinit functions
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-09 15:40:31 -06:00
vladislav doster 49926e075a
maint: consistent vim mode lines across all files (#393) 2022-10-05 09:59:15 -05:00
vladislav doster d59f15067e refactor: zunit tests & gh-r logic (#201)
- Ability to run unit tests without Docker
- Define a Z-unit \_support/bootstrap script defining the isolated test
  environment in a temp dir via `mktemp -d`, to ensure a clean test
  environment.
- GH actions workflow now tests macOS & Windows and bumps Ubuntu to the
  latest.
- GH actions workflow leverages Homebrew to simplify installing zsh &
  zunit
- Condense Z-unit GH workflow into more organized build matrix. It
  avoids creating a new environment per test file as some test files
  only have one or two tests.
- Change or remove logic in the `setup` and `teardown` functions to
  commands which apply to type of tests being run (e.g., `gh-r` setup
  sets defualt ice `gh-r` and `nocompile`).
- Expand tests for testing `gh-r` on Linux & macOS for ensuring correct
  release selection.
- Correct GH workflow `on` conditions to avoid duplicating jobs.
- Update `gh-r` ice logic to be smarter about selecting a release for
  the current system.
- Expand linting to include the tools `shfmt`, `shellcheck`, and
  `mdformat`
- Rudimentary testing for all Zinit annexes (e.g., install with no
  errors)

|   Test   | Before | Now |
| :------: | :----: | :-: |
| annexes  |   3    | 10  |
|   gh-r   |   3    | 95  |
| plugins  |   2    |  3  |
| snippets |   4    |  4  |

<img width="841" alt="Screen Shot 2022-04-23 at 21 57 08" src="https://user-images.githubusercontent.com/10052309/164954220-123a8dc5-0399-41e3-b9cf-98b2cf599145.png">

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 05:24:10 -05:00
Vladislav Doster 96fe03f85b feat: expand linted file types to markdown and shell
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-17 17:26:08 -05:00
Philipp Schmitt e47a11dbb2
Fix workdir 2022-03-18 23:24:43 +01:00
Philipp Schmitt 8e81b90335
Use container for generating docs 2022-03-17 22:55:04 +01:00
Philipp Schmitt 33c029db2b
DRY 2021-11-27 23:01:25 +01:00
Philipp Schmitt 4f34b08d90
Add --devel flag to mount repo as /src 2021-11-26 21:07:53 +01:00
Philipp Schmitt 6fb7d38fc2
Add --env alias for --environment 2021-11-23 15:40:41 +01:00
Philipp Schmitt 9a9be0c293
🐳 Add annexes to container (#103) 2021-11-23 11:17:39 +01:00
Philipp Schmitt cbb867335d
Add -f|--file flag to provide the init config via a file rather than its content (-c) 2021-11-22 20:44:34 +01:00
Philipp Schmitt e866a7a1e8
Make sure TERM is set in the container. Fixes #97 (#99) 2021-11-21 11:26:51 +01:00
Philipp Schmitt c53a3f6cc7
Fix ices tests 2021-11-21 08:10:35 +01:00
Philipp Schmitt 43a81e12c8
Don't override other env vars when run with --zunit 2021-11-21 08:02:38 +01:00
Philipp Schmitt 6e590e8540
Add -e|--environment flag (and silence zunit runs) 2021-11-21 08:01:23 +01:00
Philipp Schmitt f2daa6e665
Add --zsh-debug|-x flag to wrap commands in zsh -x 2021-11-20 22:53:28 +01:00
Philipp Schmitt 9d9e410536
Testing with zunit! 2021-11-20 21:16:34 +01:00