-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.22 KB
/
dev-build.yml
File metadata and controls
38 lines (35 loc) · 1.22 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
name: Dev build
on:
push:
branches:
- Dev
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['7.0.x']
steps:
- uses: actions/checkout@v2
- name: Setup .NET Code SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v1.7.2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test --no-restore --collect:"XPlat Code Coverage"
- name: Publish code coverage
uses: codecov/codecov-action@v1
with:
files: "**/coverage.cobertura.xml"
flags: unittests
name: vertical-commandline-codecov
#- name: Set build label
# run: echo "DEVLABEL=$(date +'%Y%m%d')" >> $GITHUB_ENV
#- name: Build pre-release packages
# run: dotnet pack -c Release --no-restore -p:VersionSuffix=dev.${{ env.DEVLABEL }}.${{ github.run_number }} -o ./pack
#- name: Publish packages to NuGet
# run: dotnet nuget push ./pack/*[^.symbols].nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_PUSH_KEY }}