Skip to content

Commit

Permalink
Create dist js size json for octocov
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 authored Sep 19, 2023
1 parent ae48e8d commit 64309c7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ jobs:
git diff
exit 1
fi
- name: Create dist/*.js size json
run: |
inner=$(find ./dist -type f -printf '%s %f\n' | jq -s -R 'split("\n") | map(select(. != "")) | map(split(" ")) | map({"value": .[0], "key": .[1], "unit": "byte"})')
jq -n --arg key "dist_size" --arg name "dist_size" --argjson metrics "$inner" '$ARGS.named' > dist_js_sizes.json
- uses: k1LoW/octocov-action@v0
env:
OCTOCOV_CUSTOM_METRICS_DIST_JS: dist_js_sizes.json
test:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 64309c7

Please sign in to comment.