Skip to content

Commit

Permalink
[Update] GH actions
Browse files Browse the repository at this point in the history
[Update] to net8.0
  • Loading branch information
samatrhea committed Apr 28, 2024
1 parent 3e4e01a commit 7c31639
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CodeQuality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,19 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
overwrite-settings: false
- name: Setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
dotnet-version: '8.0.x'

- name: Restore dependencies
run: dotnet restore
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
# Override language selection by uncommenting this and choosing your languages
with:
languages: csharp

- name: Setup .NET Environment
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore CDP-Batch-Editor.sln

- name: Build
run: dotnet build CDP-Batch-Editor.sln --configuration Release --no-restore

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion CDPBatchEditor.Tests/CDPBatchEditor.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<RootNamespace>CDPBatchEditor.Tests</RootNamespace>
Expand Down
7 changes: 3 additions & 4 deletions CDPBatchEditor/CDPBatchEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
<PropertyGroup Label="Package">
<Title>CDP4-COMET Batch Editor</Title>
<Description>CDP4-COMET Batch Editor is intended for fast administrative tasks on a specified E-TM-10-25 EngineeringModel.</Description>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<OutputType>Exe</OutputType>
<PackAsTool>true</PackAsTool>
<PackageId>cdp4-comet-be</PackageId>
<ToolCommandName>cdp4-comet-be</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
<RootNamespace>CDPBatchEditor</RootNamespace>
<Version>3.0.0</Version>
<Version>4.0.0</Version>
<PackageIcon>cdp4-icon.png</PackageIcon>
<PackageReleaseNotes>
[Update] cdp4 dependencies
[SQ] improvements
[Update] Starion Group
</PackageReleaseNotes>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
Expand Down

0 comments on commit 7c31639

Please sign in to comment.