-
-
Notifications
You must be signed in to change notification settings - Fork 34
60 lines (47 loc) · 1.67 KB
/
checkPullRequest.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
name: Check pull request
on:
pull_request:
workflow_call:
jobs:
test-linux:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.fork || github.event.pull_request.title != 'Prepare release' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
- name: Build
run: dotnet build -c Release ./${{ github.event.repository.name }}.sln
- name: Test
run: dotnet test -c Release --no-build --collect:"XPlat Code Coverage;Format=opencover" ./${{ github.event.repository.name }}.sln
env:
RunGremlinServerIntegrationTests: 'true'
RunJanusGraphIntegrationTests: 'true'
RunNeptuneIntegrationTests: 'true'
- name: Collect coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
test-windows:
runs-on: windows-2022
if: ${{ github.event.pull_request.head.repo.fork || github.event.pull_request.title != 'Prepare release' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
- name: Start CosmosDb Emulator
uses: Gremlinq/cosmos-emulator-github-action@EnableGremlin
- name: Build
run: dotnet build -c Release ./${{ github.event.repository.name }}.sln
- name: Test
run: dotnet test -c Release --no-build --collect:"XPlat Code Coverage;Format=opencover" ./${{ github.event.repository.name }}.sln
env:
RunCosmosDbIntegrationTests: 'true'
- name: Collect coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}