Trigger actions to demonstrate failed static analysis #2
Workflow file for this run
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: "Static analysis" | |
on: [push] | |
jobs: | |
static-analysis: | |
name: Run ledger static analysis | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout this repo | |
uses: actions/checkout@v3 | |
- name: Build the middleware docker image | |
run: docker/mware/build | |
- name: Run static analysis | |
run: | | |
ledger/static-analysis/gen-static-analysis | |
- name: Generate Markdown report | |
if: always() | |
run: | | |
python ledger/static-analysis/gen-report.py \ | |
-d ledger/static-analysis/output \ | |
-o ledger/static-analysis/output/report.md | |
- name: Write to job summary | |
if: always() | |
run: | | |
cat ledger/static-analysis/output/report.md > $GITHUB_STEP_SUMMARY |