Skip to content

Commit 2c7d70e

Browse files
committed
Initial commit
0 parents  commit 2c7d70e

27 files changed

+1403
-0
lines changed

.gitattributes

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # [Taiizor]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ['https://www.nuget.org/profiles/Taiizor', 'www.vegalya.com', 'www.soferity.dev']
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Bug report
2+
description: File a bug report
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for taking the time to fill out this bug report!
9+
Seriously consider creating and linking to a test repo which takes absolutely minimal setup to illustrate how reproduce the problem.
10+
- type: textarea
11+
id: bug-explanation
12+
attributes:
13+
label: Bug explanation
14+
description: |
15+
- Tell us what is the problem and what did you expect to happen.
16+
- Explain the different steps to reproduce the bug.
17+
- Provide a minimal and reproducible example either with code snippets or ideally an example repository.
18+
19+
You can attach some screenshots or/and videos to better illustrate the problem.
20+
placeholder: Explain the problem...
21+
validations:
22+
required: true
23+
- type: input
24+
id: version
25+
attributes:
26+
label: Version
27+
description: What version of our package are you running?
28+
placeholder: "Example: 1.2.3.4"
29+
validations:
30+
required: true

.github/ISSUE_TEMPLATE/config.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: GitHub discussion tab
4+
url: https://github.com/Taiizor/Skylark/discussions
5+
about: Please ask and answer questions here
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: nuget
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "03:00"
8+
open-pull-requests-limit: 10

.github/workflows/codeql-analysis.yml

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "develop" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "develop" ]
20+
schedule:
21+
- cron: '0 0 * * *'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: windows-2022
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'csharp' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
configuration: [
39+
Release
40+
]
41+
solution: [
42+
src
43+
]
44+
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v3
48+
49+
# Initializes the CodeQL tools for scanning.
50+
- name: Initialize CodeQL
51+
uses: github/codeql-action/init@v2
52+
with:
53+
languages: ${{ matrix.language }}
54+
# If you wish to specify custom queries, you can do so here or in a config file.
55+
# By default, queries listed here will override any specified in a config file.
56+
# Prefix the list here with "+" to use these queries and those in the config file.
57+
58+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
59+
# queries: security-extended,security-and-quality
60+
61+
- name: Setup .NET
62+
uses: actions/setup-dotnet@v3
63+
with:
64+
dotnet-version: 7.x
65+
66+
- name: Restore the Skylark
67+
run: dotnet restore ${{ matrix.solution }} -p:Configuration=${{ matrix.configuration }} -p:UseSharedCompilation=false
68+
69+
- name: Build the Skylark
70+
run: dotnet build ${{ matrix.solution }} -c ${{ matrix.configuration }} -p:UseSharedCompilation=false --no-restore /nowarn:CS0067,CS0108,CS0109,CS0114,CS0169,CS0414,CS0618,CS0649,CS8632,CA1416,NU5104,NETSDK1138,SYSLIB0003
71+
72+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
73+
# If this step fails, then you should remove it and run the build manually (see below)
74+
#- name: Autobuild
75+
# uses: github/codeql-action/autobuild@v2
76+
77+
# ℹ️ Command-line programs to run using the OS shell.
78+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
79+
80+
# If the Autobuild fails above, remove it and uncomment the following three lines.
81+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
82+
83+
# - run: |
84+
# echo "Run, Build Application using script"
85+
# ./location_of_script_within_repo/buildscript.sh
86+
87+
- name: Perform CodeQL Analysis
88+
uses: github/codeql-action/analyze@v2

.github/workflows/congratulations.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Congratulations
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
Congratulation:
7+
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
14+
steps:
15+
- uses: actions/first-interaction@v1
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
issue-message: 'We grateful you making your first issue notification. You can be sure that a return will be made as soon as possible.'
19+
pr-message: 'We grateful you making your first pull request notification. You can be sure that a return will be made as soon as possible.'

.github/workflows/dotnet-desktop.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: .NET Desktop
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
7+
pull_request:
8+
branches: [ develop ]
9+
10+
jobs:
11+
Build:
12+
13+
runs-on: windows-latest
14+
15+
strategy:
16+
matrix:
17+
configuration: [
18+
Release
19+
]
20+
solution: [
21+
src/Skylark.sln
22+
]
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v3
27+
with:
28+
fetch-depth: 0
29+
30+
# Install the .NET Core workload
31+
- name: Install .NET Core
32+
uses: actions/setup-dotnet@v3
33+
with:
34+
dotnet-version: 7.x
35+
36+
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
37+
- name: Setup MSBuild.exe
38+
uses: microsoft/[email protected]
39+
40+
# Execute all unit tests in the solution
41+
- name: Execute Unit Tests
42+
run: dotnet test ${{ matrix.solution }} -c ${{ matrix.configuration }} /nowarn:CS0067,CS0108,CS0109,CS0114,CS0169,CS0414,CS0649,CA1416,NU5104,NETSDK1138,SYSLIB0003
43+
44+
# Restore the application to populate the obj folder with RuntimeIdentifiers
45+
- name: Restore the Skylark
46+
run: msbuild ${{ matrix.solution }} /t:Restore /p:Configuration=$env:Configuration
47+
env:
48+
Configuration: ${{ matrix.configuration }}

.github/workflows/dotnet.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: .NET
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
7+
pull_request:
8+
branches: [ develop ]
9+
10+
jobs:
11+
Build:
12+
13+
runs-on: windows-latest
14+
15+
strategy:
16+
matrix:
17+
configuration: [
18+
Release
19+
]
20+
solution: [
21+
src
22+
]
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v3
29+
with:
30+
dotnet-version: 7.x
31+
32+
- name: Restore the Skylark
33+
run: dotnet restore ${{ matrix.solution }} -p:Configuration=${{ matrix.configuration }}
34+
35+
- name: Build the Skylark
36+
run: dotnet build ${{ matrix.solution }} -c ${{ matrix.configuration }} --no-restore /nowarn:CS0067,CS0108,CS0109,CS0114,CS0169,CS0414,CS0649,CA1416,NU5104,NETSDK1138,SYSLIB0003
37+
38+
- name: Test the Skylark
39+
run: dotnet test ${{ matrix.solution }} -c ${{ matrix.configuration }} --no-build --verbosity normal

0 commit comments

Comments
 (0)