Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 52 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,46 @@ env:
TEST_RESULTS: "results/"

jobs:
CodeQL-Analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"

- name: Enable NuGet cache
uses: actions/cache@v3.0.11
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: csharp

- name: Restore dependencies
run: dotnet restore
working-directory: ./src

- name: Build Solution
run: dotnet build -c ${{ env.BUILD_CONFIG }} --nologo ${{ env.SOLUTION }}
working-directory: ./src

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

analyze:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -62,11 +102,6 @@ jobs:
restore-keys: |
${{ runner.os }}-nuget

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Restore dependencies
run: dotnet restore
working-directory: ./src
Expand All @@ -75,9 +110,6 @@ jobs:
run: dotnet build -c ${{ env.BUILD_CONFIG }} --nologo ${{ env.SOLUTION }}
working-directory: ./src

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: Secret detection
uses: gitleaks/gitleaks-action@v1.6.0

Expand Down Expand Up @@ -134,10 +166,11 @@ jobs:
run: dotnet build -c ${{ env.BUILD_CONFIG }} --nologo "${{ env.SOLUTION }}"
working-directory: ./src

- name: Start docker-compose
run: docker compose up -d --wait
working-directory: ./src/Plugins/MinIO/Tests

- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: find ~+ -type f -name "*.Test.csproj" | xargs -L1 dotnet test -c ${{ env.BUILD_CONFIG }} -v=minimal -r "${{ env.TEST_RESULTS }}" --collect:"XPlat Code Coverage" --settings coverlet.runsettings
working-directory: ./src

Expand All @@ -148,7 +181,14 @@ jobs:
run: dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
working-directory: ./src

- uses: codecov/codecov-action@v3
- name: Stop docker-compose
run: |
docker compose down
docker volume rm tests_minio_data
docker volume rm tests_minio_config
working-directory: ./src/Plugins/MinIO/Tests

- uses: codecov/codecov-action@v3.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: "src/${{ env.TEST_RESULTS }}"
Expand Down
73 changes: 52 additions & 21 deletions doc/dependency_decisions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
- :who: mocsharp
:why: Apache-2.0 (https://github.com/aws/aws-sdk-net/raw/master/License.txt)
:versions:
- 3.7.100.6
- 3.7.100.23
:when: 2022-08-29 18:11:12.923214877 Z
- - :approve
- AWSSDK.S3
- :who: mocsharp
:why: Apache-2.0 (https://github.com/aws/aws-sdk-net/raw/master/License.txt)
:versions:
- 3.7.101.6
- 3.7.101.23
:when: 2022-08-29 18:11:13.354973002 Z
- - :approve
- AWSSDK.SecurityToken
- :who: mocsharp
:why: Apache-2.0 (https://github.com/aws/aws-sdk-net/raw/master/License.txt)
:versions:
- 3.7.100.6
- 3.7.100.23
:when: 2022-08-16 18:11:13.781079769 Z
- - :approve
- Ardalis.GuardClauses
Expand Down Expand Up @@ -65,9 +65,9 @@
- - :approve
- Microsoft.CodeCoverage
- :who: mocsharp
:why: MIT (https://github.com/microsoft/vstest/raw/v17.3.0/LICENSE)
:why: MIT (https://github.com/microsoft/vstest/raw/v17.4.0/LICENSE)
:versions:
- 17.3.2
- 17.4.0
:when: 2022-08-16 18:11:17.245887971 Z
- - :approve
- Microsoft.Extensions.Configuration
Expand Down Expand Up @@ -261,9 +261,9 @@
- - :approve
- Microsoft.NET.Test.Sdk
- :who: mocsharp
:why: MIT (https://github.com/microsoft/vstest/raw/v17.3.0/LICENSE)
:why: MIT (https://github.com/microsoft/vstest/raw/v17.4.0/LICENSE)
:versions:
- 17.3.2
- 17.4.0
:when: 2022-08-16 18:11:29.155295778 Z
- - :approve
- Microsoft.NETCore.Platforms
Expand Down Expand Up @@ -296,16 +296,16 @@
- - :approve
- Microsoft.TestPlatform.ObjectModel
- :who: mocsharp
:why: MIT (https://github.com/microsoft/vstest/raw/v17.3.0/LICENSE)
:why: MIT (https://github.com/microsoft/vstest/raw/v17.4.0/LICENSE)
:versions:
- 17.3.2
- 17.4.0
:when: 2022-08-16 18:11:32.293966383 Z
- - :approve
- Microsoft.TestPlatform.TestHost
- :who: mocsharp
:why: MIT (https://github.com/microsoft/vstest/raw/v17.3.0/LICENSE)
:why: MIT (https://github.com/microsoft/vstest/raw/v17.4.0/LICENSE)
:versions:
- 17.3.2
- 17.4.0
:when: 2022-08-16 18:11:33.162650175 Z
- - :approve
- Microsoft.Win32.Primitives
Expand Down Expand Up @@ -347,7 +347,7 @@
- :who: mocsharp
:why: MIT (https://github.com/JamesNK/Newtonsoft.Json/raw/master/LICENSE.md)
:versions:
- 13.0.1
- 13.0.2
:when: 2022-08-16 18:11:36.170116006 Z
- - :approve
- NuGet.Frameworks
Expand Down Expand Up @@ -469,25 +469,25 @@
- 4.3.0
:when: 2022-08-16 18:11:43.670153994 Z
- - :approve
- System.IO.Abstractions
- TestableIO.System.IO.Abstractions
- :who: mocsharp
:why: MIT (https://github.com/TestableIO/System.IO.Abstractions/raw/main/LICENSE)
:why: MIT ( https://github.com/TestableIO/System.IO.Abstractions/raw/main/LICENSE)
:versions:
- 17.0.18
:when: 2022-08-16 18:11:44.109277793 Z
- 18.0.1
:when: 2022-08-16 18:11:44.550586685 Z
- - :approve
- System.IO.Abstractions
- TestableIO.System.IO.Abstractions.TestingHelpers
- :who: mocsharp
:why: MIT ( https://github.com/TestableIO/System.IO.Abstractions/raw/main/LICENSE)
:versions:
- 17.2.3
:when: 2022-08-16 18:11:44.550586685 Z
- 18.0.1
:when: 2022-08-16 18:11:44.984891276 Z
- - :approve
- System.IO.Abstractions.TestingHelpers
- TestableIO.System.IO.Abstractions.Wrappers
- :who: mocsharp
:why: MIT ( https://github.com/TestableIO/System.IO.Abstractions/raw/main/LICENSE)
:versions:
- 17.2.3
- 18.0.1
:when: 2022-08-16 18:11:44.984891276 Z
- - :approve
- System.IO.Compression
Expand Down Expand Up @@ -1147,3 +1147,34 @@
:versions:
- 2.4.5
:when: 2022-08-16 18:12:27.491158618 Z
- - :approve
- Dangl.Xunit.Extensions.Ordering
- :who: mocsharp
:why: Apache-2.0 (https://github.com/GeorgDangl/Xunit.Extensions.Ordering/raw/develop/LICENSE)
:versions:
- 2.1.0
:when: 2022-11-28 18:12:27.491158618 Z
- - :approve
- FluentAssertions
- :who: mocsharp
:why: Apache-2.0 (https://github.com/fluentassertions/fluentassertions/raw/develop/LICENSE)
:versions:
- 6.8.0
:when: 2022-11-28 18:12:27.491158618 Z
- - :approve
- System.Configuration.ConfigurationManager
- :who: mocsharp
:why: MIT ( https://github.com/dotnet/corefx/raw/master/LICENSE.TXT)
:versions:
- 4.4.0
:when: 2022-08-16 23:06:43.335979768 Z
- - :approve
- System.Security.Cryptography.ProtectedData
- :who: mocsharp
:why: MIT (https://github.com/dotnet/corefx/raw/master/LICENSE.TXT)
:versions:
- 4.4.0
:when: 2022-08-16 23:07:14.759818552 Z



Loading