Skip to content

Commit

Permalink
Merge pull request #2 from z-shell/update-1206
Browse files Browse the repository at this point in the history
workspace(update)
  • Loading branch information
ss-o authored Jun 12, 2022
2 parents 798b713 + a5c3c8e commit 83cf46e
Show file tree
Hide file tree
Showing 14 changed files with 210 additions and 105 deletions.
61 changes: 0 additions & 61 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,68 +56,7 @@ indent_size = 4
charset = utf-8
indent_style = space
indent_size = 2
max_line_length = 120

[CHANGELOG.md]
indent_style = tab
indent_size = 4

[*.{c++,cc,cpp,cxx,h,h++,hh,hpp,hxx,inl,ipp,tlh,tli}]
cpp_indent_braces=false
cpp_indent_multi_line_relative_to=innermost_parenthesis
cpp_indent_within_parentheses=indent
cpp_indent_preserve_within_parentheses=false
cpp_indent_case_labels=false
cpp_indent_case_contents=true
cpp_indent_case_contents_when_block=false
cpp_indent_lambda_braces_when_parameter=true
cpp_indent_goto_labels=one_left
cpp_indent_preprocessor=leftmost_column
cpp_indent_access_specifiers=false
cpp_indent_namespace_contents=true
cpp_indent_preserve_comments=false
cpp_new_line_before_open_brace_namespace=ignore
cpp_new_line_before_open_brace_type=ignore
cpp_new_line_before_open_brace_function=ignore
cpp_new_line_before_open_brace_block=ignore
cpp_new_line_before_open_brace_lambda=ignore
cpp_new_line_scope_braces_on_separate_lines=false
cpp_new_line_close_brace_same_line_empty_type=false
cpp_new_line_close_brace_same_line_empty_function=false
cpp_new_line_before_catch=true
cpp_new_line_before_else=true
cpp_new_line_before_while_in_do_while=false
cpp_space_before_function_open_parenthesis=remove
cpp_space_within_parameter_list_parentheses=false
cpp_space_between_empty_parameter_list_parentheses=false
cpp_space_after_keywords_in_control_flow_statements=true
cpp_space_within_control_flow_statement_parentheses=false
cpp_space_before_lambda_open_parenthesis=false
cpp_space_within_cast_parentheses=false
cpp_space_after_cast_close_parenthesis=false
cpp_space_within_expression_parentheses=false
cpp_space_before_block_open_brace=true
cpp_space_between_empty_braces=false
cpp_space_before_initializer_list_open_brace=false
cpp_space_within_initializer_list_braces=true
cpp_space_preserve_in_initializer_list=true
cpp_space_before_open_square_bracket=false
cpp_space_within_square_brackets=false
cpp_space_before_empty_square_brackets=false
cpp_space_between_empty_square_brackets=false
cpp_space_group_square_brackets=true
cpp_space_within_lambda_brackets=false
cpp_space_between_empty_lambda_brackets=false
cpp_space_before_comma=false
cpp_space_after_comma=true
cpp_space_remove_around_member_operators=true
cpp_space_before_inheritance_colon=true
cpp_space_before_constructor_colon=true
cpp_space_remove_before_semicolon=true
cpp_space_after_semicolon=false
cpp_space_remove_around_unary_operator=true
cpp_space_around_binary_operator=insert
cpp_space_around_assignment_operator=insert
cpp_space_pointer_reference_alignment=left
cpp_space_around_ternary_operator=insert
cpp_wrap_preserve_blocks=one_liners
10 changes: 10 additions & 0 deletions .github/.markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Autoformatter friendly markdownlint config (all formatting rules disabled)
default: true
blank_lines: false
bullet: false
html: false
indentation: false
line_length: false
spaces: false
url: false
whitespace: false
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @z-shell/zannex
83 changes: 83 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: "🐞 Bug report"
description: File a bug report
title: "[bug]: "
labels: ["bug 🐞", "triage 📑"]
body:
- type: markdown
attributes:
value: |
First off, thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.
- type: input
id: environment
attributes:
label: Environment
description: >
Please describe your environment e.g: echo "OSTYPE=${OSTYPE} CPUTYPE=$(uname -m) / MACHINE_TYPE=$MACHTYPE ZSH_VERSION=${ZSH_VERSION}"
It may contain any additional information which would help to reproduce the issue.
placeholder: "OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.8"
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: "Please describe the expected behavior"
validations:
required: true
- type: textarea
id: current
attributes:
label: Current behavior
description: "Please describe how the bug manifests"
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Steps to reproduce
description: "Explain the steps required to duplicate the issue"
validations:
required: true
- type: textarea
id: code-snippet
attributes:
label: Code snippet
description: "Please insert your zshrc or just a short code snippet in concern"
validations:
required: true
- type: textarea
id: additional
attributes:
label: Aditional information
description: "List any other information that is relevant to your issue. For reports and stats run `zi analytics`"
validations:
required: true
- type: checkboxes
attributes:
label: Self-service
description: |
If you feel like you could contribute to this issue, please check the box below. This would tell us and other people looking for contributions that someone's working on it.
If you do check this box, please send a pull request within 7 days so we can still delegate this to someone else.
options:
- label: I'd be willing to address this documentation request myself.
- type: checkboxes
attributes:
label: Have you read the Contributing Guidelines?
options:
- label: I have read the [Contributing Guidelines](https://github.com/z-shell/community/blob/main/docs/CONTRIBUTING_GUIDELINES.md).
required: true
- type: checkboxes
attributes:
label: Are you familiar with Contributor Covenant Code of Conduct?
options:
- label: I have read the [Contributor Covenant Code of Conduct](https://github.com/z-shell/zi/blob/main/docs/CODE_OF_CONDUCT.md).
required: true
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. [email protected]
validations:
required: false
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
blank_issues_enabled: true
contact_links:
- name: ZI Wiki
url: https://z.digitalclouds.dev
about: Knowledge base.
- name: Community Discussions
url: https://github.com/orgs/z-shell/discussions
about: Please ask and answer questions here.
- name: Slack Workspace
url: https://join.slack.com/t/z-shell/shared_invite/zt-16twpopd2-p08ROUeT2aGZ5njJwysawA
about: Join to ask and answer questions or collaborate.
- name: Crowdin Translations
url: https://digitalclouds.crowdin.com/z-shell
about: Join to participate in translations.
- name: Z-Shell Portfolio
url: https://github.zshell.dev/
about: Z-Shell organization portfolio and governance.
12 changes: 12 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: "♻️ Sync Labels"

on:
schedule:
- cron: "22 2 * * 2"
workflow_dispatch:

jobs:
labels:
name: "♻️ Sync labels"
uses: z-shell/.github/.github/workflows/sync-labels.yml@main
18 changes: 18 additions & 0 deletions .github/workflows/trunk_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: "⭕ Trunk"
on:
push:
branches: [main]
tags: ["v*.*.*"]
pull_request:
types: [opened, synchronize]
workflow_dispatch:

jobs:
check:
name: ""
uses: z-shell/.github/.github/workflows/trunk.yml@main
secrets:
trunk-token: ${{ secrets.TRUNK_TOKEN }}
with:
arguments: "--no-progress"
1 change: 1 addition & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
out/
19 changes: 19 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 0.1
cli:
version: 0.13.1-beta
repo:
repo:
host: github.com
owner: z-shell
name: z-a-default-ice
lint:
linters:
- name: markdownlint
command:
[markdownlint, -q, --config, .github/.markdownlint.yaml, "${target}"]
direct_configs: [.github/.markdownlint.yaml]
enabled:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
33 changes: 31 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
{
"conventionalCommits.scopes": [
"workspace"
]
"maintenance",
"workspace",
"community",
"general",
"theme",
"CI"
],
"markdownlint.config": {
"extends": ".github/.markdownlint.yaml"
},
"files.associations": {
"*za-default*": "zsh"
},
"shellcheck.ignorePatterns": {
"**/*.xonshrc": true,
"**/*.xsh": true,
"**/*.zsh": true,
"**/*.zshrc": true,
"**/zshrc": true,
"**/*.zprofile": true,
"**/zprofile": true,
"**/*.zlogin": true,
"**/zlogin": true,
"**/*.zlogout": true,
"**/zlogout": true,
"**/*.zshenv": true,
"**/zshenv": true,
"**/*.zsh-theme": true,
"**/*za-*": true
},
"shellformat.useEditorConfig": true
}
59 changes: 17 additions & 42 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,28 @@
<div align="center"><table style="width:100%;height:auto">
<tr><td align="center">
<a title="ZI" target="_self" href="https://github.com/z-shell/zi/">
<h2><img align="center" style="width:60px;height:auto" src="https://github.com/z-shell/zi/raw/main/docs/images/logo.svg" alt="ZI Logo" /></a>
❮ ZI ❯ Annex - Test </h2><h3>
<p>An annex that runs tests via make or zunit</p> If any found – after installing and updating
a plugin or snippet. </h3>
</td></tr>
<tr><td align="center">
<img style="width:90%;height:auto" src="https://user-images.githubusercontent.com/59910950/162143845-c44ead50-b21a-46c0-8372-18325eb1f33a.gif" alt="Preview" />
</td></tr></table></div>

### Install

Zunit install if missing:

```zsh
zi for @zunit
```
<div align="center"><table><tr><td>
<h1 align="center">
<a href="https://github.com/z-shell/zi">
<img align="center" src="https://github.com/z-shell/zi/raw/main/docs/images/logo.svg" alt="Logo" width="60px" height="60px" />
</a> ❮ ZI ❯ Annex - Test </h1>
<h2><p> An annex that runs tests via make or zunit</p> If any found – after installing and updating a plugin or snippet </p></h2>
<p><img align="center" src="https://user-images.githubusercontent.com/59910950/162143845-c44ead50-b21a-46c0-8372-18325eb1f33a.gif" alt="zi annex test" width="100%" height="auto" /></p>
</td></tr></table></div><hr />

```zsh
zi light z-shell/z-a-test
```
## 💡 Wiki: [test](https://z.digitalclouds.dev/ecosystem/annexes/test) - [annexes](https://z.digitalclouds.dev/ecosystem/annexes)

## Configuration
## Install

To run the tests in a verbose mode, issue:
Install Zunit as meta-plugin if it is missing:

```zsh
zstyle :zi:annex:test quiet 0
```shell
zi light-mode for z-shell/z-a-meta-plugins @zunit
```

before installing or updating the plugin. To skip tests for a single plugin,
add `notest` ice:

```zsh
zi ice notest
zi load …
```shell
zi light z-shell/z-a-test
```

### Examples

Example activation in the default quiet mode:

![z-a-test activation](https://raw.githubusercontent.com/z-shell/z-a-test/main/docs/images/z-p-test-1.png)

Example activation in non-quiet mode:

![z-a-test activation](https://raw.githubusercontent.com/z-shell/z-a-test/main/docs/images/z-p-test-2.png)
This installs the annex and makes the annex ready to use.

---

This repository is compatible with [ZI](https://github.com/z-shell-zi)
This repository compatible with [ZI](https://github.com/z-shell/zi)
Empty file modified functions/→za-test-handler
100644 → 100755
Empty file.
Empty file modified functions/→za-test-make-targets
100644 → 100755
Empty file.
Empty file modified z-a-test.plugin.zsh
100644 → 100755
Empty file.

0 comments on commit 83cf46e

Please sign in to comment.