diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e59a547 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +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: 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 + working-directory: source \ No newline at end of file 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..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,14 +1,14 @@ - + - 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