-
-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (61 loc) · 1.76 KB
/
test.yml
File metadata and controls
67 lines (61 loc) · 1.76 KB
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
66
67
on:
# push: # TODO: Uncomment this line to enable push events
# branches:
# - main
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
jobs:
pass-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: Pass tests
steps:
- uses: actions/checkout@v4
- name: Run Doc Detective
uses: ./ # Uses an action in the root directory
id: dd
with:
config: ./artifacts/.doc-detective.json
input: ./artifacts/doc-content-inline-tests.md
fail-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: Fail tests
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4
- name: Run Doc Detective
uses: ./ # Uses an action in the root directory
id: dd
continue-on-error: true
with:
config: ./artifacts/.doc-detective.json
input: ./artifacts/doc-content-inline-tests-fail.md
exit_on_fail: true
fail-tests-with-integrations:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
name: Fail tests with integrations
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4
- name: Run Doc Detective
uses: ./
id: dd
continue-on-error: true
with:
config: ./artifacts/.doc-detective.json
input: ./artifacts/doc-content-inline-tests-fail.md
exit_on_fail: true
create_issue_on_fail: true
integrations: doc-sentinel,claude
prompt: "Investigate the failures and suggest fixes"