Commit graph

163 commits

Author SHA1 Message Date
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 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 26070d6992
maint: remove --tap flag from zunit tests 2022-05-09 20:55:22 -05:00
vladislav doster 96135bc5e5
maint: use zdharma-continuum zunit repository (#264) 2022-05-09 20:49:10 -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
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 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 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 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
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 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
Philipp Schmitt 78c898ea77
Remove the RC dance. GH runners will exit early on their own. 2022-03-18 08:19:02 +01:00
Philipp Schmitt 8e81b90335
Use container for generating docs 2022-03-17 22:55:04 +01:00
dependabot[bot] eb9ca00bde
Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 12:26:37 +00:00
Aaron Lichtman b0c07a8a07
[CI] Only run git diff once
We can return the exit code from the same command we print the diff
from.
2022-02-22 16:02:42 -07:00
Aaron Lichtman 5f6c4f37fb
[CI] Only run git diff once
We can return the exit code from the same command we print the diff
from.
2022-02-22 15:54:23 -07:00
Philipp Schmitt 30f5ad474d
Add host-info input field 2021-12-02 09:55:33 +01:00
Philipp Schmitt 81153ef210
Add zcompile step 2021-12-02 09:26:49 +01:00
Philipp Schmitt 9c73ed01a0
Merge pull request #117 from zdharma-continuum/ci-zsd 2021-12-01 09:08:54 +01:00
Philipp Schmitt 72b446d335
Update issue templates 2021-11-30 13:17:57 +01:00
Philipp Schmitt 95e8f43ba9
Emojis. Everywhere. 2021-11-29 18:54:41 +01:00
Philipp Schmitt 7f456fdbd4
MORE EMOJIS 😱 2021-11-29 18:45:44 +01:00
Philipp Schmitt fc9fe3877c
More. emojis! 🚩 2021-11-29 18:42:06 +01:00
Philipp Schmitt 005e76a7b8
🤣 Add emojis 2021-11-29 18:40:30 +01:00
Philipp Schmitt 903a612957
Don't push images for PR - just build them. 2021-11-29 18:35:00 +01:00
Philipp Schmitt 4289227ada
Remove redundant VERSION build arg 2021-11-29 18:23:06 +01:00
Philipp Schmitt b78a3455ce
Add workflow_dispatch trigger 2021-11-29 18:06:36 +01:00
Philipp Schmitt cf16a3530e
Give the PDF step a more meaningful name 2021-11-29 17:44:42 +01:00
Philipp Schmitt 3cd6794648
Check if zsd docs are up to date 2021-11-29 17:37:44 +01:00
Philipp Schmitt 17c611ac0d
Only build :latest when pushing to main branch 2021-11-28 22:27:33 +01:00
Aaron Lichtman 8b5ed2a597
Merge pull request #114 from zdharma-continuum/lint 2021-11-27 17:16:43 -06:00
Philipp Schmitt 01273ad374
Add workflow_dispatch trigger for zunit tests 2021-11-27 22:58:34 +01:00
Philipp Schmitt be79f775a6
Basic linting 🤗 2021-11-27 21:25:12 +01:00
Philipp Schmitt 8881531904
Disable zsh 5.1.1 builds 2021-11-23 13:23:47 +01:00
Philipp Schmitt 2f6cc2737b
Limit docker builds to 90 minutes of runtime (instead of the default 6 hours) 2021-11-23 12:56:05 +01:00
Philipp Schmitt 9d9e410536
Testing with zunit! 2021-11-20 21:16:34 +01:00
Philipp Schmitt 2583464bd5
🤖 Automated container builds 2021-11-17 19:58:12 +01:00
Philipp Schmitt 437b071a6b
Sort steps 2021-11-16 12:03:40 +01:00
Philipp Schmitt e099e2373b
Leverage tilde expansion for artifact files 2021-11-16 11:58:36 +01:00
Philipp Schmitt 7bbeb17c94
Enable macOS checks 2021-11-16 11:23:29 +01:00
Philipp Schmitt efb25ce137
Add FIXME notice in regards to windows artifacts 2021-11-16 10:01:34 +01:00
Philipp Schmitt f4588c87c4
zinit installs on windows (cygwin) 2021-11-16 10:00:00 +01:00
Philipp Schmitt fce79125d1
Add shellcheck 2021-11-16 07:15:16 +01:00
Philipp Schmitt c4d3049591
Fix #60: Move the installer to scripts/ 2021-11-15 19:56:52 +01:00
Philipp Schmitt 3c3a223841
Overengineer the installer 2021-11-15 18:49:47 +01:00
Philipp Schmitt b40fb28193
Update issue template to incentivize users to share relevant config sections 2021-11-06 20:58:21 +01:00
Aaron Lichtman 74e9a5825c
Delete FUNDING.yml 2021-11-01 04:54:00 -05:00
Aaron Lichtman 4c52468ebd
Update FUNDING.yml 2021-11-01 04:53:49 -05:00
Sebastian Gniazdowski 91c9f5161b
Update FUNDING.yml 2019-11-06 19:55:20 +01:00
Sebastian Gniazdowski af1df9c40c
Create FUNDING.yml 2019-08-06 21:12:36 +02:00
psprint 1c5ffa25ba Update issue templates 2018-07-14 06:41:49 +02:00