Skip to content

Commit 26a7a55

Browse files
authored
ci(workspace): πŸš€ Workspace Maintenance (#190)
* ci(workspace): πŸš€ Workspace Maintenance Remove the concurrency of ZUnit CI, scheduled checks upload for Trunk CI, migrate to projects beta and additional minor changes * Update .github/.prettierrc Co-authored-by: William Cooper <[email protected]> Signed-off-by: Salvydas Lukosius <[email protected]> * Update settings.json Signed-off-by: Salvydas Lukosius <[email protected]>
1 parent d6d979c commit 26a7a55

File tree

15 files changed

+540
-96
lines changed

15 files changed

+540
-96
lines changed

β€Ž.editorconfig

Lines changed: 314 additions & 18 deletions
Large diffs are not rendered by default.

β€Ž.gitattributes

Lines changed: 82 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,82 @@
1-
# Auto detect text files and perform LF normalization so files in repo had LF and client translates to CRLF on Windows
2-
* text=auto
3-
*.md diff=markdown
4-
*.zsh text eol=lf diff=zsh
5-
∧* text eol=lf diff=zsh
6-
\.za-* text eol=lf diff=zsh
7-
*.zi text eol=lf diff=zsh
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
#
5+
# The above will handle all files NOT found below
6+
#
7+
8+
# Documents
9+
*.bibtex text diff=bibtex
10+
*.doc diff=astextplain
11+
*.DOC diff=astextplain
12+
*.docx diff=astextplain
13+
*.DOCX diff=astextplain
14+
*.dot diff=astextplain
15+
*.DOT diff=astextplain
16+
*.pdf diff=astextplain
17+
*.PDF diff=astextplain
18+
*.rtf diff=astextplain
19+
*.RTF diff=astextplain
20+
*.md text diff=markdown
21+
*.mdx text diff=markdown
22+
*.tex text diff=tex
23+
*.adoc text
24+
*.textile text
25+
*.mustache text
26+
*.csv text
27+
*.tab text
28+
*.tsv text
29+
*.txt text
30+
*.sql text
31+
*.epub diff=astextplain
32+
33+
# Graphics
34+
*.png binary
35+
*.jpg binary
36+
*.jpeg binary
37+
*.gif binary
38+
*.tif binary
39+
*.tiff binary
40+
*.ico binary
41+
# SVG treated as text by default.
42+
*.svg text
43+
# If you want to treat it as binary,
44+
# use the following line instead.
45+
# *.svg binary
46+
*.eps binary
47+
48+
# Scripts
49+
*.bash text eol=lf
50+
*.fish text eol=lf
51+
*.sh text eol=lf
52+
*.zsh text eol=lf
53+
*.zunit text eol=lf
54+
# These are explicitly windows files and should use crlf
55+
*.bat text eol=crlf
56+
*.cmd text eol=crlf
57+
*.ps1 text eol=crlf
58+
59+
# Serialisation
60+
*.json text
61+
*.toml text
62+
*.xml text
63+
*.yaml text
64+
*.yml text
65+
66+
# Archives
67+
*.7z binary
68+
*.gz binary
69+
*.tar binary
70+
*.tgz binary
71+
*.zip binary
72+
73+
# Text files where line endings should be preserved
74+
*.patch -text
75+
76+
#
77+
# Exclude files from exporting
78+
#
79+
80+
.gitattributes export-ignore
81+
.gitignore export-ignore
82+
.gitkeep export-ignore

β€Ž.github/.prettierrc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"proseWrap": "always",
3+
"printWidth": 120,
4+
"overrides": [
5+
{
6+
"files": "*.json",
7+
"options": {
8+
"printWidth": 200
9+
}
10+
},
11+
{
12+
"files": "*.yml",
13+
"options": {
14+
"printWidth": 200
15+
}
16+
},
17+
{
18+
"files": "*.yaml",
19+
"options": {
20+
"printWidth": 200
21+
}
22+
},
23+
{
24+
"files": "*.md",
25+
"options": {
26+
"printWidth": 200
27+
}
28+
}
29+
]
30+
}

β€Ž.github/CODEOWNERS

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1 @@
1-
# Approvers:
2-
# 1. @z-shell
3-
4-
# Reviewers:
5-
# 1. @z-shell
6-
7-
* @z-shell/tcs
8-
9-
# Order is important; the last matching pattern takes the most precedence.
10-
#*.sh @z-shell
11-
#*.md @z-shell
12-
13-
# You can also use email addresses if you prefer. They'll be used to look up users just like we do for commit author emails.
14-
15-
16-
# The `docs/*` pattern will match files like
17-
# `docs/getting-started.md` but not further nested files like
18-
# `docs/build-app/troubleshooting.md`.
19-
#docs/* @z-shell
20-
21-
# In this example, @z-shell owns any file in an `lib` directory anywhere in your repository.
22-
#lib/ @z-shell
23-
24-
# In this example, @z-shell owns any file in the `.github` directory in the root of your repository.
25-
/.github/ @ss-o
1+
* @z-shell/tsc

β€Ž.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- [ ] Documentation content changes
1414
- [ ] Code style update (formatting, renaming)
1515
- [ ] Refactoring (no functional changes, no URL changes)
16-
- [ ] Improving performance of the project (not introducing new features)
16+
- [ ] Improving the performance of the project (not introducing new features)
1717
- [ ] Other (please describe):
1818

1919
Issue Number: N/A

β€Ž.github/labeler.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
documentation πŸ“:
2-
- any: ["**/*.md", "!.github/ISSUE_TEMPLATE/*"]
2+
- "docs/**/*.md"
3+
- "community/**/*.md"
4+
- "ecosystem/**/*.md"
5+
- ".github/*.md"
6+
- "!.github/ISSUE_TEMPLATE/*"
37
maintenance πŸ“ˆ:
4-
- any: [".github/**/*", "!.github/workflows/*"]
5-
- "*.code-workspace"
6-
- ".vscode**"
8+
- ".editorconfig"
9+
- ".gitattributes"
10+
- ".gitignore"
11+
- ".github/CODEOWNERS"
12+
- ".github/*.md"
13+
- ".github/*.yml"
14+
- ".github/*.yaml"
15+
- ".github/*.json"
16+
- ".github/**rc"
717
- ".trunk/**"
18+
- ".vscode/**"
19+
- "crowdin.yml"
820
enhancement ✨:
921
- "functions/**"
1022
- "src/**"
1123
- "lib/**"
1224
i18n 🌐:
1325
- "i18n/**"
26+
- "docs/i18n/**"
1427
ci πŸ€–:
1528
- ".github/workflows/*"

β€Ž.github/workflows/assign.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: "❇️ Assign"
3+
4+
on:
5+
issues:
6+
types:
7+
- opened
8+
pull_request:
9+
types:
10+
- labeled
11+
12+
jobs:
13+
assign:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/add-to-project@main
17+
with:
18+
project-url: https://github.com/orgs/z-shell/projects/4
19+
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
labeled: bug 🐞, triage πŸ“‘, annex πŸŒ€, plugin βš™οΈ, package πŸ“¦, feature-request πŸ’‘
21+
label-operator: OR

β€Ž.github/workflows/pr-labels.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ jobs:
1717
github-token: "${{ secrets.GITHUB_TOKEN }}"
1818
pull-request-number: "${{ github.event.pull_request.number }}"
1919
valid-labels: >
20-
"breaking-change πŸ’₯, bug 🐞, i18n 🌐, l10n πŸ—£, documentation πŸ“, enhancement ✨, security πŸ›‘οΈ, refactor ♻️,
21-
performance πŸš€, new-feature πŸŽ‰, triage πŸ“‘, maintenance πŸ“ˆ, ci πŸ€–, fix ⚑, dependencies πŸ“¦, submodules βš™οΈ,
22-
annex πŸ’ , plugin 🧿, package πŸ“¦"
23-
20+
"breaking-change πŸ’₯, bug 🐞, i18n 🌐, l10n πŸ—£, documentation πŸ“, enhancement ✨, security πŸ›‘οΈ, refactor ♻️, performance πŸš€, new-feature πŸŽ‰, triage πŸ“‘, maintenance πŸ“ˆ, ci πŸ€–, fix ⚑,
21+
dependencies πŸ“¦, submodules βš™οΈ, annex πŸŒ€, plugin βš™οΈ, package πŸ“¦"
2422
invalid-labels: >
25-
"Q&A ✍️, stale πŸ‘», no-stale πŸ”’, locked ‼️, resolved β˜‘οΈ, feature-request πŸ’‘, help-wanted, beginner-friendly
26-
πŸ’•, priority-low πŸ”–, invalid ⚠️"
27-
28-
disable-reviews: true
23+
"Q&A ✍️, stale πŸ‘», no-stale πŸ”’, locked ‼️, resolved β˜‘οΈ, feature-request πŸ’‘, help-wanted, beginner-friendly πŸ’•, priority-low πŸ”–, invalid ⚠️"
24+
disable-reviews: true

β€Ž.github/workflows/trunk-check.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: "β­• Trunk"
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ["v*.*.*"]
7+
pull_request:
8+
types: [opened, synchronize]
9+
schedule:
10+
- cron: "0 05 * * 5"
11+
workflow_dispatch: {}
12+
13+
jobs:
14+
check:
15+
if: github.event.schedule != '0 05 * * 5'
16+
name: "⚑"
17+
uses: z-shell/.github/.github/workflows/trunk.yml@main
18+
upload:
19+
if: github.event.schedule == '0 05 * * 5'
20+
name: "πŸ†™"
21+
uses: z-shell/.github/.github/workflows/trunk.yml@main
22+
secrets:
23+
trunk-token: ${{ secrets.TRUNK_TOKEN }}

β€Ž.github/workflows/trunk.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
Β (0)