-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.06 KB
/
Copy pathworkflow.yml
File metadata and controls
37 lines (35 loc) · 1.06 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
name: Main workflow
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: '5.5.0'
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0.9.7
- name: Setup dotnet SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
timeout-minutes: 2
run: dotnet test --no-restore --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./tests/SimpleIoT.Api.Integration.Tests/coverage.opencover.xml