mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Add github action to generate CSV coverage report
This commit is contained in:
44
.github/workflows/csv-coverage.yml
vendored
Normal file
44
.github/workflows/csv-coverage.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Build CSV flow coverage report
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'rc/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- '.github/workflows/csv-coverage.yml'
|
||||
- 'misc/scripts/generate-csv-coverage-report.py'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Clone self (github/codeql)
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: codeql
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Download CodeQL CLI
|
||||
uses: dsaltares/fetch-gh-release-asset@aa37ae5c44d3c9820bc12fe675e8670ecd93bd1c
|
||||
with:
|
||||
repo: "github/codeql-cli-binaries"
|
||||
version: "latest"
|
||||
file: "codeql-linux64.zip"
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Unzip CodeQL CLI
|
||||
run: unzip -d codeql-cli codeql-linux64.zip
|
||||
- name: Build modeled package list
|
||||
run: |
|
||||
PATH="$PATH:codeql-cli/codeql" python codeql/misc/scripts/generate-csv-coverage-report.py codeql
|
||||
- name: Upload modeled package list
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: csv-flow-model-coverage
|
||||
path: csv-flow-model-coverage-*.csv
|
||||
|
||||
Reference in New Issue
Block a user