From 6f1b85cb4355f6f5e03c49c38d1c6014e4081db4 Mon Sep 17 00:00:00 2001 From: Bervianto Leo Pratama Date: Wed, 16 Jul 2025 20:16:55 +0700 Subject: [PATCH] Upgrade to .NET 9 and Ubuntu 24.04 for CI/CD --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/cron.yml | 8 ++++---- .github/workflows/dotnet.yml | 4 ++-- ServiceMonitor.Cleaner/ServiceMonitor.Cleaner.csproj | 2 +- ServiceMonitor.Dashboard/ServiceMonitor.Dashboard.csproj | 2 +- ServiceMonitor.Mailer/ServiceMonitor.Mailer.csproj | 2 +- ServiceMonitor.Test/ServiceMonitor.Test.csproj | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index dc519bae..e29f25cf 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -12,7 +12,7 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 permissions: actions: read contents: read @@ -40,7 +40,7 @@ jobs: uses: actions/setup-dotnet@v4 if: ${{ matrix.language == 'csharp' }} with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name: Autobuild uses: github/codeql-action/autobuild@v3 diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 7d23a4bd..9736b878 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -8,7 +8,7 @@ on: jobs: run-report: name: "Run Report" - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 permissions: id-token: write # This is required for requesting the JWT contents: read # This is required for actions/checkout @@ -17,7 +17,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name: configure aws credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -35,7 +35,7 @@ jobs: FROM_EMAIL: ${{ secrets.FROM_EMAIL }} run-cleaner: name: "Run Cleaner" - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 permissions: id-token: write # This is required for requesting the JWT contents: read # This is required for actions/checkout @@ -44,7 +44,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name: configure aws credentials uses: aws-actions/configure-aws-credentials@v4 with: diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 0b7091d8..8ef39e9e 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -9,14 +9,14 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 9.0.x - name: Restore dependencies run: dotnet restore - name: Build diff --git a/ServiceMonitor.Cleaner/ServiceMonitor.Cleaner.csproj b/ServiceMonitor.Cleaner/ServiceMonitor.Cleaner.csproj index af415f53..b7c2a4c9 100644 --- a/ServiceMonitor.Cleaner/ServiceMonitor.Cleaner.csproj +++ b/ServiceMonitor.Cleaner/ServiceMonitor.Cleaner.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 enable enable diff --git a/ServiceMonitor.Dashboard/ServiceMonitor.Dashboard.csproj b/ServiceMonitor.Dashboard/ServiceMonitor.Dashboard.csproj index b6489a6d..94fd3153 100644 --- a/ServiceMonitor.Dashboard/ServiceMonitor.Dashboard.csproj +++ b/ServiceMonitor.Dashboard/ServiceMonitor.Dashboard.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable diff --git a/ServiceMonitor.Mailer/ServiceMonitor.Mailer.csproj b/ServiceMonitor.Mailer/ServiceMonitor.Mailer.csproj index ba64a51d..680d111d 100644 --- a/ServiceMonitor.Mailer/ServiceMonitor.Mailer.csproj +++ b/ServiceMonitor.Mailer/ServiceMonitor.Mailer.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 enable enable diff --git a/ServiceMonitor.Test/ServiceMonitor.Test.csproj b/ServiceMonitor.Test/ServiceMonitor.Test.csproj index 26426a17..c093a2ab 100644 --- a/ServiceMonitor.Test/ServiceMonitor.Test.csproj +++ b/ServiceMonitor.Test/ServiceMonitor.Test.csproj @@ -1,7 +1,7 @@ - net6.0 + net9.0 false