Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
frasermolyneux committed Nov 11, 2023
1 parent df12a43 commit f467cda
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 22 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/codequality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,18 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Cache SonarCloud packages
uses: actions/cache@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
path: ~\sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
java-version: 17
distribution: 'zulu' # Alternative distribution options are available.

- name: Install SonarCloud scanners
- name: Install SonarCloud scanner
shell: bash
run: |
cd src
dotnet tool install --global dotnet-sonarscanner
run: dotnet tool install --global dotnet-sonarscanner

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand All @@ -44,11 +38,10 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
cd src
dotnet-sonarscanner begin /k:"frasermolyneux_portal-repository" /o:"frasermolyneux" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
- uses: frasermolyneux/actions/dotnet-web-ci@main
dotnet sonarscanner begin /k:"frasermolyneux_portal-repository" /o:"frasermolyneux" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
- uses: frasermolyneux/actions/dotnet-ci@main
with:
dotnet-project: "repository-webapi"
dotnet-version: 7.0.x
src-folder: "src"
majorMinorVersion: "1.1"
Expand All @@ -60,7 +53,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
cd src
dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

| Stage | Status |
| --- | --- |
| Code Quality | [![Code Quality](https://github.com/frasermolyneux/portal-repository/actions/workflows/codequality.yml/badge.svg)](https://github.com/frasermolyneux/portal-repository/actions/workflows/codequality.yml) |
| Feature Development | [![Feature Development](https://github.com/frasermolyneux/portal-repository/actions/workflows/feature-development.yml/badge.svg?branch=main)](https://github.com/frasermolyneux/portal-repository/actions/workflows/feature-development.yml) |
| Pull Request Validation | [![Pull Request Validation](https://github.com/frasermolyneux/portal-repository/actions/workflows/pull-request-validation.yml/badge.svg)](https://github.com/frasermolyneux/portal-repository/actions/workflows/pull-request-validation.yml) |
| Destroy Development | [![Destroy Development](https://github.com/frasermolyneux/portal-repository/actions/workflows/destroy-development.yml/badge.svg)](https://github.com/frasermolyneux/portal-repository/actions/workflows/destroy-development.yml) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="MxIO.ApiClient.Abstractions" Version="1.1.35.1" />
<PackageReference Include="MxIO.ApiClient.Abstractions" Version="1.1.45.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" />
<PackageReference Include="MxIO.ApiClient" Version="1.1.39.1" />
<PackageReference Include="MxIO.ApiClient" Version="1.1.45.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="RestSharp" Version="110.2.0" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/repository-webapi/repository-webapi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" />
<PackageReference Include="Azure.Identity" Version="1.10.3" />
<PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.5.0" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.18.0" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.19.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.21.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="7.0.13" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.2" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="7.0.0" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.15.3" />
<PackageReference Include="MxIO.ApiClient.WebExtensions" Version="1.1.36.1" />
<PackageReference Include="MxIO.ApiClient.WebExtensions" Version="1.1.45.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
Expand Down

0 comments on commit f467cda

Please sign in to comment.