From 517e6bca7f794242be995d3f8ddfd1deee82de4a Mon Sep 17 00:00:00 2001 From: Alexander Zeitler Date: Sun, 14 Apr 2024 16:22:18 +0200 Subject: [PATCH] ci: run tests --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..ab83640 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: .NET Core Build with Tests + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + # use ubuntu for more build minutes + runs-on: ubuntu-latest + # use release mode for all steps + env: + config: 'Debug' + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET Core + uses: actions/setup-dotnet@v2 + with: + dotnet-version: '8.0.x' + + - name: Install dependencies + run: | + cd src + dotnet restore + - name: Build + run: | + cd src + dotnet build --configuration $config --no-restore + - name: Test + run: | + cd src + dotnet test -l "console;verbosity=detailed"