feat: output digest metrics #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |