forked from Rabobank-Archive/azure-functions
-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (60 loc) · 2.15 KB
/
build.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: build
on:
push:
branches:
- main
env:
DOTNET_VERSION: '7.0'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout main
uses: actions/checkout@main
- name: setup dotnet ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
source-url: https://nuget.pkg.github.com/azure-devops-compliance/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.PAT }}
- name: dotnet build
run: dotnet build Functions -c release
# test:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: checkout main
# uses: actions/checkout@main
# - name: sestup dotnet ${{ env.DOTNET_VERSION }}
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: ${{ env.DOTNET_VERSION }}
# source-url: https://nuget.pkg.github.com/azure-devops-compliance/index.json
# env:
# NUGET_AUTH_TOKEN: ${{ secrets.PAT }}
# - name: dotnet test
# run: dotnet test -c release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
# env:
# TOKEN: ${{secrets.AZURE_DEVOPS_TOKEN}}
# AzureWebJobsStorage: ${{secrets.AzureWebJobsStorage}}
# - uses: codecov/codecov-action@v1
# mutation-test:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: checkout main
# uses: actions/checkout@main
# - name: setup dotnet ${{ env.DOTNET_VERSION }}
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: ${{ env.DOTNET_VERSION }}
# source-url: https://nuget.pkg.github.com/azure-devops-compliance/index.json
# env:
# NUGET_AUTH_TOKEN: ${{ secrets.PAT }}
# - name: stryker
# run: |
# dotnet tool install -g dotnet-stryker
# dotnet stryker -tp "['Functions.Tests/Functions.Tests.csproj']" -im "['ConfigureAwait']" --reporters "['dashboard']" --dashboard-project github.com/azure-devops-compliance/azure-functions/main
# env:
# STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_TOKEN }}