-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (55 loc) · 1.52 KB
/
ci.yaml
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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: CI
on:
workflow_dispatch:
pull_request:
branches: ["main"]
paths:
- 'src/**'
- 'test/**'
jobs:
ci:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v3
# test prerequisites
# dotnet 6,7,8
- name: Install .NET 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Install .NET 8
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
# azure function sdk
- name: Install Azure Functions SDK
run: npm install -g azure-functions-core-tools@4
# dapr
- name: Dapr tool installer
uses: dapr/setup-dapr@v1
- name: Init Dapr
run: |
dapr init
dapr --version
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --filter FailsInGithubActions!=true --no-build --logger trx
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
job_summary: true
files: |
**/*.trx