From 1856913477a25c7542b312f8f2b696e5a5896c56 Mon Sep 17 00:00:00 2001 From: Merijn Hendriks Date: Sat, 27 Apr 2024 01:05:28 +0200 Subject: [PATCH] Add workflows --- .github/workflows/dotnet.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 00000000..ea241d51 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,40 @@ +name: .NET Test + +on: + workflow_dispatch: + push: + paths-ignore: + - '**/*.md' + pull_request: + paths-ignore: + - '**/*.md' + +jobs: + test: + runs-on: ubuntu-latest + + env: + DOTNET_NOLOGO: true + DOTNET_CLI_TELEMETRY_OPTOUT: true + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + token: ${{ secrets.FIKA_GITMODULES }} + + - name: Setup dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Install dependencies + run: dotnet restore --configfile Nuget.config + + - name: Build + run: dotnet build --nologo --no-restore --configuration Debug + + - name: Test + run: dotnet test --nologo --no-restore --no-build --blame-hang-timeout 1min + \ No newline at end of file