diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8ad01e2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +--- +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + + - name: Restore dependencies + run: dotnet restore TestProject.slnx + + - name: Build + run: dotnet build TestProject.slnx --no-restore + + - name: Test + run: dotnet test TestProject.slnx --no-build --verbosity normal diff --git a/.gitignore b/.gitignore index 8f7b345..69c9a22 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,7 @@ _ReSharper*/ # Test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* +*.log # .NET Core project.lock.json