Commit graph

50 commits

Author SHA1 Message Date
vladislav doster 18fc2cc5b9
fix: update git-chglog to git-cliff in gh-r tests
git-chglog was archived and git-cliff  is actively maintained fork
2026-02-17 06:10:09 -06:00
vladislav doster 01eb65f8ce
fix: Update various tools in gh-r tests (#759) 2026-02-01 09:43:27 +01:00
Douglas de Campos Held 5784ef17f4
Fix: Timeout on downloading from GH releases (#741) 2025-09-10 09:27:45 +02:00
Philipp Schmitt 091ddfeee5
ci: disable navi gh-r test on mac os (#702) 2025-02-18 17:50:58 +01:00
Philipp Schmitt 50643c6e6e
fix: gh-r zunit tests (#691) 2025-01-26 00:01:13 +01:00
vladislav doster c346949645
fix(gh-r.zunit): alist org name (#680)
Some checks failed
Container images / build-containers-with-zsh (5.2.4) (push) Has been cancelled
Container images / build-containers-with-zsh (5.3.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.4.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.5.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.6.2) (push) Has been cancelled
Container images / build-containers-with-zsh (5.7.1) (push) Has been cancelled
Container images / build-containers-with-zsh (5.8) (push) Has been cancelled
Container images / build-containers-with-zsh (5.9) (push) Has been cancelled
Container images / build-container-latest (push) Has been cancelled
Documentation / zshelldoc (push) Has been cancelled
Lint / Lint (push) Has been cancelled
Unit Tests / zunit-tests (macos-latest) (push) Has been cancelled
Unit Tests / zunit-tests (ubuntu-latest) (push) Has been cancelled
2024-11-08 17:10:16 -06:00
vladislav doster 0c18fda87f
test(fx): pin version to 32.0.0 (#644)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-03-19 15:02:36 -05:00
vladislav doster b7b8347cad
fix: compile command logic when using id-as ice (#619)
- Updated README.md `compiling` section
- Compile commands now work with `id-as` ice
- Compile command options added to tab completion  

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-03-03 23:43:48 -06:00
vladislav doster 22e66db478
feat: configure, make, cmake, and build ices (#613) (#616)
* Refactored 'configure' and 'make' ices
* New 'build' ice sets 'configure' and 'make ices if no flags are needed.
* New 'cmake' ice will build/install using 'cmake'
* Delete command now handles programs using 'make' and 'cmake' ices
* Setting `$ZINIT[DEBUG]` enables debug logging (i.e., `+zi-log "{dbg} message ..."`)
2024-01-09 04:11:39 -06:00
vladislav doster 9cf5b17198
ci: pin mcfly version gh-r test (#615) 2023-12-24 19:13:24 -06:00
vladislav doster 0ba778ac73
fix: pin dua gh-r test to v2.20.3 (#605) 2023-12-08 20:19:49 -06:00
vladislav doster 1f52eee1b1
fix: from'gh-r' skips compile by default (#590)
Skip compile when from'gh-r' ice is set unless compile is also set.

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-11-20 05:50:12 -06:00
vladislav doster 9b33288b4a
fix: set home dir to test env in gh-r tests (#582)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-09-29 02:12:46 -05:00
vladislav doster 2e7b9aa29e
ci: optimize zunit tests (#572)
- cache test plugin dependencies
- add gh-r zunit tests
- fix ipinfo zunit test
- pin qsv version to 0.112.0 for macOS x86_64

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-09-14 05:13:59 -05:00
vladislav doster 207ab9f281
fix: gh-r linux regex & gh-r zunit tests (#564)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-08-29 23:33:00 -05:00
vladislav doster 19ca2dc361
fix: update gomi repo owner (#568) 2023-08-28 03:42:44 -05:00
vladislav doster 97b087e68a
fix: gh-r zunit tests (#561)
- remove version pin for `atuin` test
- update `atuin` repo owner
- `lfs` renamed to `dysk`
- macOS architecture check for `create-go-app`
2023-08-12 06:22:21 -05:00
Philipp Schmitt 1cb1df6307
ci: fix repo for hub (github -> mislav) (#541) 2023-06-15 19:49:06 +02:00
vladislav doster 497d519d99 fix: pin fclones version to v0.31.0 2023-06-08 20:48:12 -05:00
Philipp Schmitt de85908f8d
fix: jq has moved from stedolan/jq to jqlang/jq (#530) 2023-06-05 10:02:55 +02:00
vladislav doster 08f02e00d0
fix: pin git-mkver unit test to v1.2.2 2023-05-02 07:13:54 -05:00
Vladislav Doster c323116483 feat: expand gh-r zunit tests
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-19 16:54:49 +00:00
Vladislav Doster d71525ca63
ci: fq cli gh-r zunit test
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-15 23:37:52 -05:00
Vladislav Doster 2f39986945
ci: fnm gh-r zunit test
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-04-10 17:15:12 -05:00
vladislav doster 824d9d3617
fix: lsd repo owner changed to lsd-rs organization (#489)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-03-26 08:30:20 +02:00
vladislav doster 9f677989e8
fix: pin ggsrun version in gh-r z-unit test
Latest version `[v2.0.1](https://github.com/tanaikech/ggsrun/releases/tag/v2.0.1)` has no assets.
2023-03-10 00:08:33 -06:00
Vladislav Doster 469baa17cf ci: git-absorb zunit gh-r test
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-14 01:45:20 +00:00
Vladislav Doster ecae986bb2 ci: add dstask gh-r test
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-08 15:25:42 -06:00
Vladislav Doster d618467ff0 fix: failing zunit tests & bootstrap script
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-05 04:36:25 -06:00
vladislav doster 64fa4aef3a
fix: remove broken gh-r zunit test for "warp" (#430)
* remove broken gh-r zunit test for "warp"
* set LC_CTYPE & LANG env variables for macOS

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-11-20 17:08:42 -06:00
Vladislav Doster dd12fce3f4 fix: gh-r & plugin zunit tests
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-10-30 07:58:32 -05:00
Vladislav Doster a5b05ae9ea (fix): add os-x to darwin gh-r pattern
- add `os-x` to darwin gh-r pattern
- add zunit test for tstack/lnav

Closes #367

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-09-03 06:53:50 -05:00
Jan Katins c3d1bb586c
fix: allow zinit to be run from non-interactive scripts (#227)
* maint: Ignore .idea folder

Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>

* fix: Don't escape exclamation marks in hook keys

Exclamation marks (per default) get escaped in interactive mode,
but not in non-interactive modes. In this case it meant that zinit
would not find any hooks which implements the ices when running in
non-interactive mode (e.g. in a script). This in turn would NOT result
in errors but would just silently not execute any of the ices which
of course would be a bad thing(tm).

https://github.com/zdharma-continuum/zinit/issues/199 has the details...

Closes: #199

* fix: Ignore errors if cp cannot copy .zwc files

This would otherwise bubble up as a hook failure and further up as a zinit call failure

* fix: Add pick ice now that the compile hook is run

After the fix, the compile hook is now run and would fail without this information. IN addition, only files starting with _ are linked into the completion folder.

* fix: Fix docker-buildx gh-r test now that atclone ice is run

* maint: Add basic tests for cp/mv/atclone/make ices

zunit runs tests non-interactively and these tests fail without the fix in this branch.

Co-authored-by: Philipp Schmitt <pschmitt@users.noreply.github.com>
2022-08-06 02:35:58 -04:00
vladislav doster 56fb9e0b1d
fix: calico gh-r zunit test (#356)
- test using the `--help` flag instead of the `version` command
2022-07-25 05:56:59 -05:00
vladislav doster fb3c082551
fix: alist repository for gh-r test (#305)
- `alist` project ownership was transferred from user`Xhofe` to organization`alist-org`
2022-06-08 13:54:25 -05:00
vladislav doster f8d8999809
maint: remove "pokeget" test due to repo deletion (#281)
Signed-off-by: Vladislav Doster <vladislav.doster@Mastercard.com>
2022-05-22 22:11:27 -05:00
vladislav doster 8620574a55
fix: account for systems where musl is present (#269)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-18 14:36:23 -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 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 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 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
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 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
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 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 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 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