-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.13 KB
/
ci-build-and-test.yml
File metadata and controls
42 lines (36 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 🛠️ CI Build & Test
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 2 * * *" # run at 2 AM UTC
jobs:
build:
name: 🔨 Build and Test (CI)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: 🗂️ Checkout the repository
uses: actions/checkout@main
- name: ⬇️ Install .NET 8
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.x'
- name: ⬇️ Install .NET 9
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'
- name: ⬇️ Install .NET 10
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: 🛠️ Build code
run: dotnet build --configuration Release -p:TreatWarningsAsErrors=true
- name: 🧪 Run tests
run: |
echo "## 📊 Unit test results" >> $GITHUB_STEP_SUMMARY
dotnet test --no-build --configuration Release tests/Reactive.Boolean.Tests/Reactive.Boolean.Tests.csproj -- RunConfiguration.CollectSourceInformation=true