Skip to content

Commit 1053db9

Browse files
authored
Merge pull request #1059 from ita-social-projects/develop
on the road to release
2 parents 137bd91 + a69a017 commit 1053db9

File tree

1,198 files changed

+253485
-0
lines changed

Some content is hidden

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

1,198 files changed

+253485
-0
lines changed

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**/bin
2+
**/obj
3+
**/.vs
4+
**/.vscode
5+
**/.idea
6+
**/.dockerignore
7+
**/.env
8+
**/.git
9+
**/.gitignore
10+
**/docker-compose*
11+
**/.vagrant
12+
LICENSE
13+
README.md

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[*.{yml,yaml}]
2+
charset = utf-8
3+
end_of_line = lf
4+
indent_size = 2
5+
indent_style = space
6+
insert_final_newline = true
7+
max_line_length = 80
8+
trim_trailing_whitespace = true
9+
10+
[*.md]
11+
max_line_length = 0
12+
trim_trailing_whitespace = false

.github/assign/auto_assign.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
addReviewers: true
2+
addAssignees: author
3+
reviewers:
4+
- andriy-korchynskyy
5+
- DmyMi
6+
numberOfReviewers: 0
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Auto Assign Reviewers for Team Branches"
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- ready_for_review
7+
- reopened
8+
branches:
9+
- "develop"
10+
jobs:
11+
add-reviews:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: kentaro-m/[email protected]
15+
with:
16+
configuration-path: ".github/assign/auto_assign.yml"

.github/workflows/dotnetcore.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- develop
7+
- '*'
8+
pull_request:
9+
branches: [ develop ]
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: windows-latest
15+
steps:
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.11
20+
- uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
23+
- name: Cache SonarCloud packages
24+
uses: actions/cache@v1
25+
with:
26+
path: ~\sonar\cache
27+
key: ${{ runner.os }}-sonar
28+
restore-keys: ${{ runner.os }}-sonar
29+
- name: Cache SonarCloud scanner
30+
id: cache-sonar-scanner
31+
uses: actions/cache@v1
32+
with:
33+
path: .\.sonar\scanner
34+
key: ${{ runner.os }}-sonar-scanner
35+
restore-keys: ${{ runner.os }}-sonar-scanner
36+
- name: Install SonarCloud scanner
37+
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
38+
shell: powershell
39+
run: |
40+
New-Item -Path .\.sonar\scanner -ItemType Directory
41+
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
42+
- name: Build and analyze
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
45+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46+
shell: powershell
47+
run: |
48+
cd .\OutOfSchool\
49+
..\.sonar\scanner\dotnet-sonarscanner begin /k:"ita-social-projects-oos-backend" /o:"ita-social-projects" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vstest.reportsPaths="/OutOfSchool.IdentityServer.Tests/TestResults/*.trx, /OutOfSchool.WebApi.Tests/TestResults/*.trx" /d:"sonar.verbose=true" /d:"sonar.cs.opencover.reportsPaths"="/OutOfSchool.IdentityServer.Tests/coverage.opencover.xml, /OutOfSchool.WebApi.Tests/coverage.opencover.xml"
50+
dotnet build
51+
dotnet add OutOfSchool.IdentityServer.Tests\OutOfSchool.IdentityServer.Tests.csproj package coverlet.msbuild
52+
dotnet add OutOfSchool.WebApi.Tests\OutOfSchool.WebApi.Tests.csproj package coverlet.msbuild
53+
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover -l:trx
54+
..\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
55+
56+
test:
57+
runs-on: ${{ matrix.os }}
58+
strategy:
59+
matrix:
60+
os: [ubuntu-latest, windows-latest, macOS-latest]
61+
62+
steps:
63+
- uses: actions/checkout@v2
64+
65+
- name: Setup .NET
66+
uses: actions/setup-dotnet@v1
67+
with:
68+
dotnet-version: 6.0.102
69+
70+
- name: Clean
71+
run: dotnet clean ./OutOfSchool/OutOfSchool.sln --configuration Release && dotnet nuget locals all --clear
72+
73+
- name: Restore dependencies
74+
run: dotnet restore ./OutOfSchool/
75+
76+
- name: Build
77+
run: dotnet build --configuration Release --no-restore ./OutOfSchool
78+
79+
- name: Test
80+
run: dotnet test --no-restore --no-build --configuration Release ./OutOfSchool

0 commit comments

Comments
 (0)