-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.4 KB
/
Copy pathbuild.yml
File metadata and controls
55 lines (49 loc) · 1.4 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
43
44
45
46
47
48
49
50
51
52
53
54
55
name: build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- '*'
permissions:
contents: read
actions: read
id-token: write
env:
DOTNET_NOLOGO: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup dotnet 8.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.x
- name: Setup dotnet 9.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.x
- name: Setup dotnet 10.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release
- name: Test with dotnet
run: dotnet test --configuration Release
/p:CollectCoverage=true
/p:CoverletOutputFormat="\"cobertura,json\""
/p:CoverletOutput=coverage/
/p:IncludeTestAssembly=false
- name: Upload dotnet test results
uses: coverallsapp/github-action@v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ github.workspace }}/src/Sidio.Text.Base32.Tests/coverage/coverage.net8.0.cobertura.xml ${{ github.workspace }}/src/Sidio.Text.Base32.Tests/coverage/coverage.net9.0.cobertura.xml
format: cobertura
if: ${{ always() }}