diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f740cb3..04cff0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: .NET Build & UnitTests +name: CI on: workflow_dispatch: @@ -12,20 +12,20 @@ on: - "src/**" jobs: - build-and-test: - strategy: - fail-fast: false - matrix: - include: - - os: windows-latest - osName: Windows - name: Test on ${{ matrix.osName }} - permissions: - contents: read - uses: MareMare/ReusableWorkflows/.github/workflows/ci.net7.yml@main - with: - runner-os: ${{ matrix.os }} - working-directory: src - testing-directory: src - run-unittest: 'true' - unittest-filter: 'Category!=local' + ci: + name: CI on windows + runs-on: windows-latest + + steps: + - name: 🛒 Checkout + uses: actions/checkout@v4.1.1 + - name: ✨ Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: 🚚 Restore + run: dotnet restore src + - name: 🛠️ Build + run: dotnet build src --configuration Release --no-restore + - name: 🧪 Test + run: dotnet test src --configuration Release --no-build --verbosity normal --filter 'Category!=local' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4f61d16..935e33e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -41,10 +41,10 @@ jobs: - name: 🛒 Checkout repository uses: actions/checkout@v4 - - name: ✨ Setup .NET 7.0 + - name: ✨ Setup .NET 8.0 uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x # Initializes the CodeQL tools for scanning. - name: ✨ Initialize CodeQL diff --git a/.github/workflows/create-release-and-upload-asset.yml b/.github/workflows/create-release-and-upload-asset.yml index ecf69c6..c7b6ae0 100644 --- a/.github/workflows/create-release-and-upload-asset.yml +++ b/.github/workflows/create-release-and-upload-asset.yml @@ -19,10 +19,10 @@ jobs: with: fetch-depth: 0 - - name: ✨ Set up .NET 7.0 + - name: ✨ Set up .NET 8.0 uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x # # https://github.community/t/how-to-get-just-the-tag-name/16241/17 # # ${{ steps.get_version.outputs.VERSION }} @@ -32,12 +32,10 @@ jobs: # shell: bash - name: 🚚 Restore dependencies - working-directory: src - run: dotnet restore + run: dotnet restore src - name: 🛠️ Build - working-directory: src - run: dotnet build --configuration Release --no-restore + run: dotnet build src --configuration Release --no-restore - name: 🚀 Publish DummyFileCreator.App run: dotnet publish --configuration Release -p:PublishProfile=FolderProfile .\src\DummyFileCreator.App\DummyFileCreator.App.csproj diff --git a/.vscode/launch.json b/.vscode/launch.json index 4091101..486de5b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "request": "launch", "preLaunchTask": "build", // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/src/DummyFileCreator.Console/bin/Debug/net6.0/DummyFileCreator.Console.dll", + "program": "${workspaceFolder}/src/DummyFileCreator.Console/bin/Debug/net8.0/DummyFileCreator.Console.dll", "args": [], "cwd": "${workspaceFolder}/src/DummyFileCreator.Console", // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console diff --git a/src/Directory.Build.props b/src/Directory.Build.props index aefc01f..d0c000d 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,7 +3,7 @@ - 1.1.0 + 2.0.0 diff --git a/src/DummyFileCreator.App/DummyFileCreator.App.csproj b/src/DummyFileCreator.App/DummyFileCreator.App.csproj index 825208c..6e69711 100644 --- a/src/DummyFileCreator.App/DummyFileCreator.App.csproj +++ b/src/DummyFileCreator.App/DummyFileCreator.App.csproj @@ -2,7 +2,7 @@ WinExe - net7.0-windows + net8.0-windows enable true enable @@ -16,7 +16,7 @@ - + diff --git a/src/DummyFileCreator.App/Properties/PublishProfiles/FolderProfile.pubxml b/src/DummyFileCreator.App/Properties/PublishProfiles/FolderProfile.pubxml index 9093790..1409742 100644 --- a/src/DummyFileCreator.App/Properties/PublishProfiles/FolderProfile.pubxml +++ b/src/DummyFileCreator.App/Properties/PublishProfiles/FolderProfile.pubxml @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Any CPU bin\publish\ FileSystem - net7.0-windows + net8.0-windows win-x64 true true diff --git a/src/DummyFileCreator.Console/DummyFileCreator.Console.csproj b/src/DummyFileCreator.Console/DummyFileCreator.Console.csproj index ac32409..dcfc40f 100644 --- a/src/DummyFileCreator.Console/DummyFileCreator.Console.csproj +++ b/src/DummyFileCreator.Console/DummyFileCreator.Console.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 enable enable DummyFileCreator.ico diff --git a/src/DummyFileCreator.Console/Properties/PublishProfiles/FolderProfile.pubxml b/src/DummyFileCreator.Console/Properties/PublishProfiles/FolderProfile.pubxml index abec71f..908666e 100644 --- a/src/DummyFileCreator.Console/Properties/PublishProfiles/FolderProfile.pubxml +++ b/src/DummyFileCreator.Console/Properties/PublishProfiles/FolderProfile.pubxml @@ -8,7 +8,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. Any CPU bin\publish\ FileSystem - net7.0 + net8.0 win-x64 true true diff --git a/src/DummyFileCreator.UnitTests/DummyFileCreator.UnitTests.csproj b/src/DummyFileCreator.UnitTests/DummyFileCreator.UnitTests.csproj index 95734a9..e8bfa11 100644 --- a/src/DummyFileCreator.UnitTests/DummyFileCreator.UnitTests.csproj +++ b/src/DummyFileCreator.UnitTests/DummyFileCreator.UnitTests.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable @@ -9,9 +9,9 @@ - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/src/DummyFileCreator/DummyFileCreator.csproj b/src/DummyFileCreator/DummyFileCreator.csproj index cfadb03..30402ac 100644 --- a/src/DummyFileCreator/DummyFileCreator.csproj +++ b/src/DummyFileCreator/DummyFileCreator.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable