-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.07 KB
/
ci.yml
File metadata and controls
39 lines (32 loc) · 1.07 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
name: CI
on: [push, pull_request]
env:
DOTNET_VERSION: "10.0.x"
SOLUTION_DIR: "Source/LocalNetAppChat"
jobs:
build-and-test:
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Restore
run: dotnet restore
working-directory: ${{ env.SOLUTION_DIR }}
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ${{ env.SOLUTION_DIR }}
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
working-directory: ${{ env.SOLUTION_DIR }}
- name: Coveralls
if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ env.SOLUTION_DIR }}/LocalNetAppChat.Server.Domain.Tests/coverage.info