-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (39 loc) · 1.08 KB
/
pullrequest.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
name: Test Build Documentation
on:
pull_request:
branches:
- 'main'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
test:
name: Test Build
runs-on: ubuntu-latest
concurrency: ci-${{ github.ref }}
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dotnet tools
run: dotnet tool restore
- name: Run Build
run: dotnet docfx docfx.json
complete:
runs-on: ubuntu-latest
needs: test
name: Test completion task
steps:
- run: echo "Tests Complete"