-
Notifications
You must be signed in to change notification settings - Fork 54
35 lines (28 loc) · 1.04 KB
/
ci.yml
File metadata and controls
35 lines (28 loc) · 1.04 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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Add AutoMapper Myget Source
run: dotnet nuget add source https://www.myget.org/F/automapperdev/api/v3/index.json -n automappermyget
- name: Test
run: dotnet test --configuration Release --verbosity normal /p:CollectCoverage=true /p:Threshold=94 /p:ThresholdType=line /p:ThresholdStat=Average /p:CoverletOutputFormat=opencover /p:CoverletOutput=./TestResults/ /p:ExcludeByAttribute="GeneratedCodeAttribute"
- name: Pack and push
env:
PROJECT_NAME: AutoMapper.Extensions.ExpressionMapping
DEPLOY_PACKAGE_URL: https://www.myget.org/F/automapperdev/api/v3/index.json
DEPLOY_PACKAGE_API_KEY: ${{ secrets.MYGET_CI_API_KEY }}
REPO: ${{ github.repository }}
REPO_OWNER: ${{ github.repository_owner }}
run: ./Pack_Push.ps1
shell: pwsh