-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 864 Bytes
/
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
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test ai-digest action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: ai-digest
clean: true
# Test the action with no options specified.
- name: NoOptions
uses: ./ai-digest
- name: Test NoOptions outputs
run: |
test -f codebase.md
test -f ingest.md
# Test the action with all inputs specified.
- name: All Options
uses: ./ai-digest
with:
input_path: './ai-digest/.github/workflows'
output_file: 'workflows.md'
digest_log: 'workflows-ingest.md'
ai_digest_flags: ''
- name: Test Options outputs
run: |
test -f workflows.md
test -f workflows-ingest.md