diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/cd.yaml
similarity index 100%
rename from .github/workflows/ci-cd.yaml
rename to .github/workflows/cd.yaml
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..30a4f1a
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,38 @@
+name: CI
+
+on:
+ push:
+ pull_request:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ bots:
+ - PoliNetworkBot
+ defaults:
+ run:
+ working-directory: ${{ matrix.bots }}
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '7.0.x'
+
+ - name: Restore dependencies
+ run: dotnet restore
+
+ - name: Build
+ run: dotnet build --no-restore
+
+ - name: Test
+ run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
+
+ - name: Upload coverage to Codecov
+ uses: codecov/codecov-action@v1
+ with:
+ file: ./${{ matrix.bots }}/coverage.opencover.xml
diff --git a/PoliNetworkBot/PoliNetworkBot.csproj b/PoliNetworkBot/PoliNetworkBot.csproj
index 2b14c81..eacd55f 100644
--- a/PoliNetworkBot/PoliNetworkBot.csproj
+++ b/PoliNetworkBot/PoliNetworkBot.csproj
@@ -7,4 +7,11 @@
enable
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+