-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (52 loc) · 1.48 KB
/
Copy pathbuild-dotnet.yml
File metadata and controls
54 lines (52 loc) · 1.48 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: .NET
on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- "dotnet/**"
- "proto/**"
- ".github/workflows/*dotnet*"
- "devops/**"
push:
branches:
- main
paths:
- "dotnet/**"
- "proto/**"
- ".github/workflows/*dotnet*"
- "devops/**"
jobs:
build-and-test-dotnet:
name: Build, Test
runs-on: ${{ matrix.os-artifact[0] }}
# runs-on: macos-latest
strategy:
fail-fast: false
matrix:
os-artifact: [ [windows-latest, windows], [macos-latest, macos] ] # [ubuntu-latest, linux] - doesn't support ios
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download workflow artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: "build-libs.yml"
path: ./libs/${{ matrix.os-artifact[1] }}
github_token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ matrix.os-artifact[1] }}
- uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- name: Build and Test coverage
run: |
dotnet workload install macos ios maccatalyst
./BuildAndTest.ps1
working-directory: ./dotnet
shell: pwsh
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
directory: dotnet
token: ${{ secrets.CODECOV_TOKEN }}