Skip to content

Commit

Permalink
feat: add grade summary
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
tristanrobert committed Jun 4, 2021
1 parent 1546786 commit 849850b
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 7,086 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: npm ci
- run: npm audit fix
- run: npm test

# test action works running from the graph
test:
action:
name: Test GH Action
runs-on: ubuntu-latest
steps:
Expand All @@ -29,15 +30,16 @@ jobs:
- name: Checkout Github
uses: actions/checkout@v2
if: ${{ !env.ACT }}
- name: on MTES-MCT/action-bidonvilles and MTES-MCT/partaj
- name: on MTES-MCT/carbure and MTES-MCT/partaj
uses: ./
with:
token: ${{ secrets.CODESCANALERTS_TOKEN }}
repositories: MTES-MCT/action-bidonvilles,MTES-MCT/partaj
repositories: MTES-MCT/carbure,MTES-MCT/partaj
output: codescanalerts.json
- name: test output
run: |
tool=$(echo $(cat codescanalerts.json | jq '. | length'))
echo $(cat codescanalerts.json)
tool=$(echo $(cat codescanalerts.json | jq '.repositories | length'))
if [[ ! "${tool[@]}" == 2 ]]; then
exit 1
fi
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ Launch:

```shell
npm run all
act -j test
act -j units # unit tests
act -j action # test Github action locally
```
51 changes: 47 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 849850b

Please sign in to comment.