From e11b529d3c2186fb2a6e0a4aaf9a5c3d15479056 Mon Sep 17 00:00:00 2001 From: Travis Frisinger Date: Wed, 28 May 2025 17:38:15 +0000 Subject: [PATCH 1/6] feat: add README and upgrade project to .NET 8 Co-authored-by: Genie --- source/README.md | 35 +++++++++++++++++++ .../StoneAge.System.Utils.Tests.csproj | 2 +- .../StoneAge.System.Utils.csproj | 2 +- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 source/README.md diff --git a/source/README.md b/source/README.md new file mode 100644 index 0000000..4515427 --- /dev/null +++ b/source/README.md @@ -0,0 +1,35 @@ +# StoneAge.System.Utils.DotNetCore + +## Prerequisites + +- [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) +- [GitHub CLI](https://cli.github.com/) + +## Installing GitHub CLI + +Follow the instructions below for your operating system: + +### Windows + +```sh +winget install --id GitHub.cli +``` + +### macOS + +```sh +brew install gh +``` + +### Linux (Debian/Ubuntu) + +```sh +type -p curl >/dev/null || sudo apt install curl -y +curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg +sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg +echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null +sudo apt update +sudo apt install gh -y +``` + +For more details, visit the [GitHub CLI official installation guide](https://github.com/cli/cli#installation). \ No newline at end of file diff --git a/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj b/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj index f5b80da..7b4e630 100644 --- a/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj +++ b/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 diff --git a/source/StoneAge.System.Utils/StoneAge.System.Utils.csproj b/source/StoneAge.System.Utils/StoneAge.System.Utils.csproj index 80813fb..e438e8d 100644 --- a/source/StoneAge.System.Utils/StoneAge.System.Utils.csproj +++ b/source/StoneAge.System.Utils/StoneAge.System.Utils.csproj @@ -1,7 +1,7 @@  - net7.0 + net8.0 StoneAge.System.Utils.DotNetCore Travis Frisinger StoneAge Technologies From 9d953de9fadbc2ff031eea2e86549791c9581802 Mon Sep 17 00:00:00 2001 From: Travis Frisinger Date: Wed, 28 May 2025 17:38:39 +0000 Subject: [PATCH 2/6] feat: add CI workflow for .NET 8 with build and test steps Co-authored-by: Genie --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..abf1c16 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET 8 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Install GitHub CLI + run: | + sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 + sudo apt-add-repository https://cli.github.com/packages + sudo apt update + sudo apt install gh -y + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore --configuration Release + + - name: Test + run: dotnet test --no-build --verbosity normal \ No newline at end of file From 93e8a5e7017ab1b61883ad169992a32b9a21f642 Mon Sep 17 00:00:00 2001 From: Travis Frisinger Date: Wed, 28 May 2025 17:39:28 +0000 Subject: [PATCH 3/6] chore: update CI workflow to use 'master' branch instead of 'main' Co-authored-by: Genie --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abf1c16..6f2169f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ main ] + branches: [ master ] pull_request: - branches: [ main ] + branches: [ master ] jobs: build: @@ -21,8 +21,6 @@ jobs: - name: Install GitHub CLI run: | - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 - sudo apt-add-repository https://cli.github.com/packages sudo apt update sudo apt install gh -y From 264bbd256ae12563a3896cb884d52552d3d1a0f8 Mon Sep 17 00:00:00 2001 From: Travis Frisinger Date: Wed, 28 May 2025 17:40:42 +0000 Subject: [PATCH 4/6] chore: update CI workflow and upgrade test dependencies Co-authored-by: Genie --- .github/workflows/ci.yml | 5 +---- .../StoneAge.System.Utils.Tests.csproj | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f2169f..ee863af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,10 +19,7 @@ jobs: with: dotnet-version: '8.0.x' - - name: Install GitHub CLI - run: | - sudo apt update - sudo apt install gh -y + - name: Restore dependencies run: dotnet restore diff --git a/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj b/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj index 7b4e630..19f5567 100644 --- a/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj +++ b/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj @@ -5,10 +5,10 @@ - - - - + + + + From 42d83a59e83a02faea33146f413dbb2feda207be Mon Sep 17 00:00:00 2001 From: Travis Frisinger Date: Wed, 28 May 2025 17:41:01 +0000 Subject: [PATCH 5/6] chore: clean up CI workflow and project file formatting --- .github/workflows/ci.yml | 2 -- .../StoneAge.System.Utils.Tests.csproj | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee863af..47dd26c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,6 @@ jobs: with: dotnet-version: '8.0.x' - - - name: Restore dependencies run: dotnet restore diff --git a/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj b/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj index 19f5567..bfcd10e 100644 --- a/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj +++ b/source/StoneAge.System.Utils.Tests/StoneAge.System.Utils.Tests.csproj @@ -1,4 +1,4 @@ - + net8.0 From f059fd495dc9fa9cc128bf1cfd283995cbe42350 Mon Sep 17 00:00:00 2001 From: Travis Frisinger Date: Wed, 28 May 2025 17:45:24 +0000 Subject: [PATCH 6/6] chore: update CI workflow to set working directory for restore, build, and test steps Co-authored-by: Genie --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47dd26c..e59a547 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,9 +21,12 @@ jobs: - name: Restore dependencies run: dotnet restore + working-directory: source - name: Build run: dotnet build --no-restore --configuration Release + working-directory: source - name: Test - run: dotnet test --no-build --verbosity normal \ No newline at end of file + run: dotnet test --no-build --verbosity normal + working-directory: source \ No newline at end of file