-
Notifications
You must be signed in to change notification settings - Fork 10
47 lines (41 loc) · 1.08 KB
/
ci.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
name: CI
on:
push:
branches: [ "main" ]
paths-ignore:
- 'docs/**'
- 'design/**'
- 'README.md'
- '.github/workflows/release*'
- '.github/workflows/pull-request*'
- '.github/release.yml'
- 'version.json'
- 'LICENSE.md'
jobs:
build-and-test-backend:
name: "Build & core Tests"
strategy:
matrix:
osversion: [Linux, Windows, macOS]
ostype: ['self-hosted']
fail-fast: false
runs-on: ${{ matrix.osversion }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: On validate main
shell: bash
env:
TOKEN_FOR_NUGET : ${{ secrets.TOKEN_FOR_NUGET }}
PARTNER_SECRET : ${{ secrets.PARTNER_SECRET }}
run: bash build.sh validate-main
- if: runner.os == 'Windows'
name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}