Commit graph

3603 commits

Author SHA1 Message Date
vladislav doster 92a235654a
style: format CODE_OF_CONDUCT to fix failing test (#275)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-14 07:59:27 -05:00
vladislav doster 0825607f63
docs: create a code of conduct for contributors (#273)
- Recommended for projects of all sizes
- Update labeler configuration to mark changes to markdown files in
  repository root directory as `docs`

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-14 07:34:17 -05:00
vladislav doster 4d4cb13fa8
maint: expand systems (macos-{12,10.15} & ubuntu-{22.04,18.04} that run unit tests (#268)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-12 01:19:09 -05:00
vladislav doster f25b4ae2b9
feat: add krew and prebuilt-ripgrep gh-r zunit tests (#267)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-10 21:16:09 -05:00
vladislav doster c703290fc2
maint: add got binary to gh-r tests (#266)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-10 10:50:33 -05:00
vladislav doster 26070d6992
maint: remove --tap flag from zunit tests 2022-05-09 20:55:22 -05:00
vladislav doster 7dae300326
maint: add hoofli, joincap, etcd, euterpe, and certificates gh-r tests (#263)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-09 20:50:31 -05:00
vladislav doster 96135bc5e5
maint: use zdharma-continuum zunit repository (#264) 2022-05-09 20:49:10 -05:00
vladislav doster 2cdeef387a maint: modify linux-(gnu|musl) patterns (#260)
* maint: modify linux-(gnu|musl) patterns

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-09 14:06:54 -05:00
vladislav doster b617e54262
maint: add warp & moonwalk tests && add misc. descriptions (#261)
- Add tests for `moonwalk`, `helix`, `wtf`, `alist`, `moonwalk`, and `warp`
- Add descriptions for multiple programs

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-09 14:04:53 -05:00
vladislav doster b74f627ffa
maint: improve gh actions trigger for zshelldocs (#262)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-09 14:04:09 -05:00
Yusei Ueno 05559ebdbc
fix: syntax error when checking for realpath command (#259)
Closes #257
2022-05-08 20:40:20 -05:00
Tommy Wang b6f286b2c7
Add a new ice named "link", enabling local snippets to be symlinked instead of copied into the cache. (#234)
* Add link ice for local-only snippets that uses symlink instead of copying
* update docs
* fix README for link ice
* fix unit tests for link ice
- account for the host not having `realpath` >= 8.23 (the symlink will be
  an absolute path instead of a relative path)
2022-05-07 18:06:46 -05:00
vladislav doster 4a9f9df022
maint: fix macos pattern, add new tests and format (#250)
- darwin gh-r pattern now includes the `.dmg` extension
- `gh-r` tests for bit, gron, pulumi, atmos, keepassxc, alacrity, assh,
  and dog
- clean up duplicate code with formatting and moving duplicate logic to
  the default ice, if possible

See #243 #245 #247

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>():
2022-05-06 08:40:31 -05:00
dependabot[bot] 692a98b180
build(deps): bump docker/setup-qemu-action from 1 to 2 (#252)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 07:26:29 -05:00
dependabot[bot] de86c20a10
build(deps): bump docker/setup-buildx-action from 1 to 2 (#253)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 07:26:22 -05:00
dependabot[bot] 256d90e4bb
build(deps): bump docker/login-action from 1 to 2 (#254)
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 07:26:00 -05:00
dependabot[bot] 580c1e8233
build(deps): bump docker/build-push-action from 2 to 3 (#251)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 07:25:45 -05:00
vladislav doster d60638f221
fix: gh-r logic ignores [36]86 assets (#235)
Changes:

- Reduce zunit verbosity with `--tap` flag
- `gh-r` tests now use `lbin` instead of `sbin`. `lbin` has smarter
  logic when looking for executables to use in creating a shim
- Add gh-r tests for `rust-analyzer`, `docker-compose`, `neovim` binary &
  appimage, and `kopia`
- Condense gh-r test logic to halve LOC (i.e., 1000+ -> ~500)
- Update gh-r logic to discard 32 bit binaries, improve 64 bit
  selection, and linux-{gnu,musl} patterns

Closes #225, #246, #247

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-05 21:58:38 -05:00
vladislav doster 5c70f5a4a7
maint: improve scope of docs workflow triggers (#249) 2022-05-05 13:37:52 -05:00
vladislav doster 6647bdc31c
feat: add GH action to remove old workflow logs (#248) 2022-05-05 05:21:16 -05:00
vladislav doster 693498484a
maint: use --tap flag to reduce zunit test output (#246)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-04 23:36:39 -05:00
vladislav doster 596d2e7346
maint: refactor snippets.zunit & add multiple tests (#242)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-02 07:26:03 -05:00
vladislav doster 6ef84398b2
fix: modify regex in gh-r for assets to not consider for selection (#244)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-02 06:37:43 -05:00
Philipp Schmitt 4c5854b1cd
Merge pull request #241 from jankatins/fix_plugins_dir_setup
fix: Don't error if $OPTS is not yet defined in .zinit-compinit call
2022-05-02 08:23:55 +02:00
Jan Katins 44765e0bcb fix: Don't error if $OPTS is not yet defined in .zinit-compinit call
This codepath was triggered when deleting the whole `~/.zinit/plugins` dir: during recreation in `.zinit-prepare-home`, `.zinit-compinit &> /dev/null` would be called and the sourcing of `zinit.zsh` would error out with

```
+.zinit-compinit:2> [[.zinit-compinit:2: bad math expression: operand expected at `/Users/jan...'
 -n '' ]]
```

As the error was redirected to `/dev/null`, this never showed up. Any zinit install call during that session would not run any hooks as they were not yet registered. The next session would then be fine because the plugins dir would exist.
2022-05-01 22:41:48 +02:00
vladislav doster 49af86688b
fix: trigger for PR labeler GH action workflow (#237)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-29 02:25:55 -05:00
vladislav doster 8a0d5678d1
fix: permissions for PR labeler GH action workflow (#236)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-29 02:11:14 -05:00
vladislav doster 08c705381e
maint: gh-r tests for atuin, compress, gosu, and v (#233)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-28 08:31:57 -05:00
vladislav doster 5b734115dc
maint: update Makefile targets (#224)
- add `zwc` target to compile zinit source to `.zwc`
- add zsh path variable
- add 'test' target to easily run zunit tests
- clean target cleans `.zwc` and more explicit for `.adoc`
- remove `scripts/zcompile` script

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-28 03:59:47 -05:00
vladislav doster 126528ccd5
feat: add compile vim from source zunit test (#232)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-27 19:18:06 -05:00
vladislav doster 630f21f167
docs: remove git.io URL use from install command (#230)
Closes #229

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-26 15:19:20 -05:00
vladislav doster 57f0d82118
fix: gh-r filters i686 (32 bit) for x86_64 (#226)
* fix: gh-r filters i686 (32 bit) for x86_64

Closes #225

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-26 14:40:09 -05:00
vladislav doster 450d3c10a8
feat: add -a (actual time) to zinit times cmd (#223)
- Display load moments to `zinit times` via new `-a` flag.

I found it useful to show both plugin load times, as well as load moments:

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-25 01:36:25 -05:00
vladislav doster bad7af3ae2
feat: ability to set program for zinit ls to use (#221)
A user can now specify a program via the `$ZINIT[LIST_COMMAND]`
variable. Additionally, it will first check for `exa` and fallback to
tree if this variable is not set.

e.g., use exa or any `tree`-esque program in `zinit ls`.

Closes #170

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-25 01:00:47 -05:00
vladislav doster 421855b933
maint: add hadolint (dockerfile linter) gh-r zunit test (#222)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-25 00:25:02 -05:00
vladislav doster d0e7f9d204
doc: improve zsd gen, pdf output, and gh workflow (#220)
- Fix to re-enable users to generate zshelldoc documentation without
  docker.
- Update most asciidoctor blocks in Zinit source code to fix issue where
  they would take up a line above the next function name
- Remove unnecessary steps from the documentation Github action workflow
- Misc. Makefile changes in clean and doc targets logic

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 20:42:44 -05:00
vladislav doster af4dcd5950
maint: update issue templates to organize new issues (#219)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 07:16:11 -05:00
vladislav doster fa269b4312
docs: update README.md install command to use bash to avoid error (#218)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 06:25:34 -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
Aaron Lichtman 537e895c1d
Merge pull request #173 from zdharma-continuum/bugfix/self-update-can-use-any-branch 2022-04-17 19:19:10 -06:00
vladislav doster 0fac4338f4
Merge pull request #215 from zdharma-continuum/feat/expand-linted-file-types
feat: expand linted file types to markdown and shell
2022-04-17 17:38:34 -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
Vladislav Doster eab948cdd0 maint: make logging style/colors consistent
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-12 13:12:58 -05:00
Vladislav Doster 047320a923 feat: update output messaging to be more informative
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-11 18:27:09 -05:00
vladislav doster 704f4beca0
Merge pull request #213 from zdharma-continuum/dependabot/github_actions/actions/upload-artifact-3
Bump actions/upload-artifact from 2 to 3
2022-04-11 09:30:28 -05:00
dependabot[bot] 8440defb78
Bump actions/upload-artifact from 2 to 3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 13:37:54 +00:00
Vladislav Doster 23c47e1973 bugfix: zinit self-update respects the current branch
Fix bug in Zinit `self-update` command that used the `main` branch
instead of using current branch.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-11 04:57:18 -05:00
vladislav doster 3a7dc95f02
fix: rename docs to doc to match doc dir (#212) 2022-04-10 22:45:02 -05:00
vladislav doster 42e83d7f99
feat: add PR labeler to show what parts of Zinit are changed (#211)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-10 22:37:58 -05:00