Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct dist script size by octocov #11

Merged
merged 7 commits into from
Sep 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add name to custom metrics json
Kesin11 authored Sep 19, 2023
commit 6159f5475b5dc0ead2ed7828cf5fbc23c4882721
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ jobs:
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]|tonumber, "key": .[1], "unit": "byte"})')
inner=$(find ./dist -type f -printf '%s %f\n' | jq -s -R 'split("\n") | map(select(. != "")) | map(split(" ")) | map({"value": .[0]|tonumber, "key": .[1], "name": .[1], "unit": "byte"})')
jq -n --arg key "dist_size" --arg name "dist_size" --argjson metrics "$inner" '$ARGS.named' > dist_js_sizes.json
- name: Create dummy coverage
run: touch coverage.out