-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.49 KB
/
pull-request.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
name: Pull Request
on:
pull_request:
branches: [ main ]
types: [opened, reopened, synchronize]
jobs:
build-and-test-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Install .NET Aspire workload
run: dotnet workload install aspire
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install dependencies and build the client
working-directory: example/livedocs-client
run: |
npm ci
npm run build
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test with coverage
run: dotnet test ./tests/RxDBDotNet.Tests/RxDBDotNet.Tests.csproj --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings
timeout-minutes: 5
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
files: ./tests/RxDBDotNet.Tests/TestResults/*/coverage.lcov
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Auto-label the PR
uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
disable-releaser: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}