Skip to content

Commit

Permalink
CI: generate and publish test report
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Alpe <[email protected]>
  • Loading branch information
rical committed Dec 10, 2024
1 parent acd226b commit dca099b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,30 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y tcl tcllib expect
sudo apt-get install -y tcl tcllib expect ruby ruby-dev build-essential
gem install --user-install asciidoctor-pdf
gem install --user-install rouge
pip install pyyaml
echo "PATH=\$PATH:$(ruby -e 'puts Gem.user_dir')/bin" >> $GITHUB_ENV
- name: Run Unit Tests
run: python3 9pm.py --option cmdl-supplied unit_tests/auto.yaml

- name: Publish Test Result
run: cat ~/9pm_log/last/result-gh.md >> $GITHUB_STEP_SUMMARY

- name: Generate Test Report
run: |
asciidoctor-pdf --theme report/theme.yml -a pdf-fontsdir=report/fonts ~/9pm_log/last/report.adoc -o ~/9pm_log/last/report.pdf
- name: Upload Logs as Artifacts
uses: actions/upload-artifact@v3
with:
name: 9pm-logs
path: ~/9pm_log/
path: ~/9pm_log/

- name: Upload Test Report as Artifact
uses: actions/upload-artifact@v3
with:
name: test-report
path: ~/9pm_log/last/report.pdf

0 comments on commit dca099b

Please sign in to comment.