Skip to content

Commit 78b2da7

Browse files
committed
Add project files.
1 parent e4046ff commit 78b2da7

22 files changed

+1480
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: mihaj
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
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: mihaj
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.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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+
# ******** NOTE ********
12+
13+
name: "CodeQL Analyze"
14+
15+
on:
16+
pull_request:
17+
branches: [ develop ]
18+
schedule:
19+
- cron: '36 12 * * 3'
20+
21+
jobs:
22+
analyze:
23+
runs-on: ubuntu-latest
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
language: [ 'csharp' ]
29+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
30+
# Learn more...
31+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
32+
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@v2
36+
- name: Setup .NET Core 3.1
37+
uses: actions/setup-dotnet@v1
38+
with:
39+
dotnet-version: '3.1.x'
40+
- name: Setup .NET Core 5.0
41+
uses: actions/setup-dotnet@v1
42+
with:
43+
dotnet-version: '5.0.x'
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

.github/workflows/dotnet-core.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build .NET Library
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop, main ]
8+
release:
9+
types:
10+
- published
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ ubuntu-latest, windows-latest, macos-latest ]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Setup .NET Core 3.1
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: '3.1.x'
25+
- name: Setup .NET Core 5.0
26+
uses: actions/setup-dotnet@v1
27+
with:
28+
dotnet-version: '5.0.x'
29+
- name: Install dependencies
30+
run: dotnet restore
31+
- name: Build
32+
run: dotnet build --configuration Release --no-restore
33+
- name: Test
34+
run: dotnet test --no-restore --verbosity normal
35+
- name: Upload a Build Artifact
36+
uses: actions/upload-artifact@v2.2.0
37+
with:
38+
# Artifact name
39+
name: qatoolkit-engine-httptester-net.zip
40+
# A file, directory or wildcard pattern that describes what to upload
41+
path: src/QAToolKit.Engine.HttpTester/bin/
42+
deploy:
43+
name: Pack and Push Nuget
44+
needs: build
45+
if: github.event_name == 'release'
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v2
49+
- name: Setup .NET Core 3.1
50+
uses: actions/setup-dotnet@v1
51+
with:
52+
dotnet-version: '3.1.x'
53+
- name: Setup .NET Core 5.0
54+
uses: actions/setup-dotnet@v1
55+
with:
56+
dotnet-version: '5.0.x'
57+
- name: Pack NuGet
58+
uses: brandedoutcast/publish-nuget@v2.5.5
59+
with:
60+
# Filepath of the project to be packaged, relative to root of repository
61+
PROJECT_FILE_PATH: src/QAToolKit.Engine.HttpTester/QAToolKit.Engine.HttpTester.csproj
62+
VERSION_FILE_PATH: Directory.Build.props
63+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
64+
TAG_COMMIT: true
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Sonarqube Analyze
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
sonarcloud:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Setup .NET Core 3.1
16+
uses: actions/setup-dotnet@v1
17+
with:
18+
dotnet-version: '3.1.x'
19+
- name: Setup .NET Core 5.0
20+
uses: actions/setup-dotnet@v1
21+
with:
22+
dotnet-version: '5.0.x'
23+
- name: SonarScanner for .NET Core with pull request decoration support
24+
uses: highbyte/sonarscan-dotnet@2.0-beta
25+
with:
26+
sonarProjectKey: qatoolkit_qatoolkit-engine-httptester-net
27+
sonarProjectName: qatoolkit_qatoolkit-engine-httptester-net
28+
sonarOrganization: qatoolkit
29+
dotnetBuildArguments: ./src/QAToolKit.Engine.HttpTester/QAToolKit.Engine.HttpTester.csproj
30+
dotnetTestArguments: ./src/QAToolKit.Engine.HttpTester.Test/QAToolKit.Engine.HttpTester.Test.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
31+
sonarBeginArguments: /d:sonar.verbose="true" /d:sonar.language="cs" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml" /d:sonar.coverage.exclusions="**Tests.cs"
32+
sonarHostname: "https://sonarcloud.io"
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)