Skip to content

Commit 80fecb2

Browse files
committed
initial commit
0 parents  commit 80fecb2

416 files changed

Lines changed: 20071 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 1232 additions & 0 deletions
Large diffs are not rendered by default.

.gitattributes

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
###############################
2+
# Git Line Endings #
3+
###############################
4+
5+
# Set default behavior to automatically normalize line endings.
6+
* text=auto
7+
8+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
9+
# in Windows via a file share from Linux, the scripts will work.
10+
*.{cmd,[cC][mM][dD]} text eol=crlf
11+
*.{bat,[bB][aA][tT]} text eol=crlf
12+
13+
# Force bash scripts to always use LF line endings so that if a repo is accessed
14+
# in Unix via a file share from Windows, the scripts will work.
15+
*.sh text eol=lf
16+

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: 🔥 Bug
3+
about: Something that needs fixing.
4+
title: ""
5+
labels: "Type: Bug"
6+
assignees: ""
7+
8+
---
9+
10+
### 🔥 Bug Description
11+
A clear and concise description of what the bug is.
12+
13+
### 🔍 Steps to Reproduce the Bug
14+
1. Go to '...'
15+
2. Click on '....'
16+
3. Scroll down to '....'
17+
4. See error
18+
19+
### 🧯 Possible Solution
20+
* Usefull tips or places to start go here.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: 🚀 Technical Story
3+
about: An improvement to the project from a user or technical perspective.
4+
title: ""
5+
labels: "Type: Story"
6+
assignees: ""
7+
8+
---
9+
10+
### 🚀 Feature Description
11+
As a [user role], I'd like to [improvement description], in order to [value this improvement adds].
12+
13+
### ✔ Goals
14+
- [ ] Create a button for X in Y
15+
- [ ] Add an input field for Z
16+
- [ ] Refactor class W
17+
18+
### 🧰 Possible Solution
19+
- Usefull tips or places to start go here.
20+
21+
### 🚧 Blocked by
22+
- #666 - creation of fields in X
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
### 🚀 Feature Description
2+
This PR introduces [feature description]. This resolves #1337.
3+
4+
### 🧰 Technical Solution
5+
- [x] Change this to that
6+
- [x] Add something in some file
7+
- [x] Add a library to do some magic
8+
9+
### ⚠️ Known Issues
10+
- Introduces some weird bug (#666) which needs to be fixed before merging this!
11+
- All documents are now missing (#404)
12+
13+
=======================================================
14+
15+
### 🧯 Bugfix Description
16+
This PR fixes [bug description]. This resolves #1234.
17+
18+
### 🧰 Technical Solution
19+
- [x] Change this to that
20+
- [x] Add something in some file
21+
22+
=======================================================
23+
24+
### ⚠️ Breaking Changes
25+
- #500 - Public api endpoint returns different structure
26+
- #501 - Public method signature changed in some file
27+
28+
### 🚀 New Features
29+
- #337 - Fancy new feature 1
30+
- #666 - Feature 2
31+
32+
### 🧯 Bugfixes
33+
- #666 - Fixed random crashes
34+
- #404 - Documents can now be found again
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Conventional Commits
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
name: Conventional Commits
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4.2.2
13+
- uses: webiny/action-conventional-commits@v1.3.0
14+
with:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release dev container image
2+
3+
env:
4+
IMAGE_NAME: ${{ github.repository }}
5+
REGISTRY: ghcr.io
6+
7+
on:
8+
workflow_dispatch:
9+
10+
jobs:
11+
call-workflow-test:
12+
uses: ./.github/workflows/devcontainer-test.yaml
13+
14+
deploy:
15+
needs:
16+
- call-workflow-test
17+
if: ${{ github.ref == 'refs/heads/main' }}
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
packages: write
22+
pull-requests: write
23+
environment:
24+
name: deploy-devcontainer-feature
25+
steps:
26+
- uses: actions/checkout@v3
27+
28+
- name: "Publish Features"
29+
uses: devcontainers/action@v1
30+
with:
31+
publish-features: "true"
32+
base-path-to-features: "./ext/devcontainer/src"
33+
generate-docs: "false"
34+
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test dev container
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
paths:
6+
- "ext/devcontainer/**"
7+
- ".github/workflows/devcontainer-test.yaml"
8+
branches: [main]
9+
workflow_call:
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
baseImage:
18+
[
19+
"mcr.microsoft.com/devcontainers/dotnet",
20+
]
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: "Install latest devcontainer CLI"
25+
run: npm install -g @devcontainers/cli
26+
27+
- name: "Generating tests for 'aspirate' against '${{ matrix.baseImage }}'"
28+
run: devcontainer features test -f aspirate -i ${{ matrix.baseImage }} .
29+
working-directory: ./ext/devcontainer
30+
31+
test-scenarios:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v3
35+
36+
- name: "Install latest devcontainer CLI"
37+
run: npm install -g @devcontainers/cli
38+
39+
- name: "Testing 'aspirate' scenarios"
40+
run: devcontainer features test -f aspirate --skip-autogenerated .
41+
working-directory: ./ext/devcontainer
42+
43+
test-global:
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v3
47+
48+
- name: "Install latest devcontainer CLI"
49+
run: npm install -g @devcontainers/cli
50+
51+
- name: "Testing global scenarios"
52+
run: devcontainer features test --global-scenarios-only .
53+
working-directory: ./ext/devcontainer

.github/workflows/docs.yaml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Build and Deploy Docs
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
id-token: write
8+
pages: write
9+
10+
env:
11+
INSTANCE: Writerside/hi
12+
ARTIFACT: webHelpHI2-all.zip
13+
DOCS_FOLDER: ./docs
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
23+
- name: Build Writerside docs using Docker
24+
uses: JetBrains/writerside-github-action@v4
25+
with:
26+
instance: ${{ env.INSTANCE }}
27+
artifact: ${{ env.ARTIFACT }}
28+
location: ${{ env.DOCS_FOLDER }}
29+
30+
- name: Upload documentation
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: docs
34+
path: |
35+
artifacts/${{ env.ARTIFACT }}
36+
artifacts/report.json
37+
retention-days: 7
38+
39+
test:
40+
needs: build
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- name: Download artifacts
45+
uses: actions/download-artifact@v4
46+
with:
47+
name: docs
48+
path: artifacts
49+
50+
- name: Test documentation
51+
uses: JetBrains/writerside-checker-action@v1
52+
with:
53+
instance: ${{ env.INSTANCE }}
54+
55+
deploy:
56+
environment:
57+
name: github-pages
58+
url: ${{ steps.deployment.outputs.page_url }}
59+
needs: test
60+
runs-on: ubuntu-latest
61+
steps:
62+
- name: Download artifact
63+
uses: actions/download-artifact@v4
64+
with:
65+
name: docs
66+
67+
- name: Unzip artifact
68+
run: unzip -O UTF-8 -qq ${{ env.ARTIFACT }} -d dir
69+
70+
- name: Setup Pages
71+
uses: actions/configure-pages@v5
72+
73+
- name: Upload artifact
74+
uses: actions/upload-pages-artifact@v3
75+
with:
76+
path: dir
77+
78+
- name: Deploy to GitHub Pages
79+
id: deployment
80+
uses: actions/deploy-pages@v4

.github/workflows/main.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Main CI-CD
2+
3+
env:
4+
NUGET_SERVER: https://api.nuget.org/v3/index.json
5+
NUGET_API_KEY: ${{ secrets.PUBLIC_NUGET_TOKEN }}
6+
DOTNET_NOLOGO: true
7+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
8+
DOTNET_CLI_TELEMETRY_OPTOUT: true
9+
CAKE_SETTINGS_SKIPVERIFICATION: true
10+
11+
on:
12+
push:
13+
tags:
14+
- "*"
15+
16+
jobs:
17+
build-test-pull-request:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- uses: actions/setup-dotnet@v3
26+
with:
27+
dotnet-version: '9.0.x'
28+
29+
- name: Build, Test and Pack
30+
run: |
31+
dotnet tool restore
32+
dotnet cake --pack true --settings_skipverification=true
33+
34+
- name: Push to nuget
35+
working-directory: artifacts/
36+
run: dotnet nuget push *.nupkg -s $NUGET_SERVER -k $NUGET_API_KEY

0 commit comments

Comments
 (0)