From 927523dec750f97c0a3cf197f88ccc84b2af5ebb Mon Sep 17 00:00:00 2001 From: Felix-CodingClimber <55654328+Felix-CodingClimber@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:37:27 +0100 Subject: [PATCH] Create build-and-test-src.yml --- .github/workflows/build-and-test-src.yml | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-and-test-src.yml diff --git a/.github/workflows/build-and-test-src.yml b/.github/workflows/build-and-test-src.yml new file mode 100644 index 0000000..92529ce --- /dev/null +++ b/.github/workflows/build-and-test-src.yml @@ -0,0 +1,36 @@ +name: build and test src + +on: + push: + pull_request: + branches: [ main ] + paths: + - 'src/*' + +env: + DOTNET_VERSION: '8.x.x' + +jobs: + build-and-test: + + name: build-and-test-${{matrix.os}} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + + - name: Install dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Test + run: dotnet test --no-restore --verbosity normal