-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (59 loc) · 1.32 KB
/
build-and-test.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
name: "build and test"
on:
push:
branches:
- main
paths:
- 'host/**/*.cs'
- 'host/**/*.cshtml'
- 'host/**/*.csproj'
- 'host/**/*.razor'
- 'src/**/*.cs'
- 'src/**/*.cshtml'
- 'src/**/*.csproj'
- 'src/**/*.razor'
- 'test/**/*.cs'
- 'test/**/*.csproj'
- 'Directory.Build.props'
pull_request:
paths:
- 'host/**/*.cs'
- 'host/**/*.cshtml'
- 'host/**/*.csproj'
- 'host/**/*.razor'
- 'src/**/*.cs'
- 'src/**/*.cshtml'
- 'src/**/*.csproj'
- 'src/**/*.razor'
- 'test/**/*.cs'
- 'test/**/*.csproj'
- 'Directory.Build.props'
types:
- opened
- synchronize
- reopened
- ready_for_review
permissions:
contents: read
jobs:
build-test:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@master
with:
dotnet-version: 7.0.100
- name: chown
run: |
sudo chown -R $USER:$USER /home/runneradmin
- name: Build All
run: ./build-all.ps1
working-directory: ./build
shell: pwsh
- name: Test All
run: ./test-all.ps1
working-directory: ./build
shell: pwsh
- name: Codecov
uses: codecov/codecov-action@v2