chore: update gradle & kotlin versions #129
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: 🧪 Size diff | |
on: | |
pull_request: | |
paths-ignore: | |
- 'example/**' | |
- 'FabricExample/**' | |
- 'docs/**' | |
jobs: | |
check-diff: | |
name: 🔬 Find npm package size diff | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout to target branch | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Calculate size of package (target) | |
id: old-size | |
run: echo "OLD_SIZE=$(node scripts/size.js)" >> "$GITHUB_OUTPUT" | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Calculate size of package (current) | |
id: new-size | |
run: echo "NEW_SIZE=$(node scripts/size.js)" >> "$GITHUB_OUTPUT" | |
- name: Calculate difference | |
id: diff | |
env: | |
NEW_SIZE: ${{ steps.new-size.outputs.NEW_SIZE }} | |
OLD_SIZE: ${{ steps.old-size.outputs.OLD_SIZE }} | |
run: | | |
echo "DIFF=$((NEW_SIZE - OLD_SIZE))" >> "$GITHUB_OUTPUT" | |
echo "SIGN=$([ $((NEW_SIZE - OLD_SIZE)) -gt 0 ] && echo "📈" || echo "📉")" >> "$GITHUB_OUTPUT" | |
- uses: marocchino/sticky-pull-request-comment@v2 | |
env: | |
NEW_SIZE: ${{ steps.new-size.outputs.NEW_SIZE }} | |
OLD_SIZE: ${{ steps.old-size.outputs.OLD_SIZE }} | |
DIFF: ${{ steps.diff.outputs.DIFF }} | |
SIGN: ${{ steps.diff.outputs.SIGN }} | |
with: | |
message: | | |
### 📊 Package size report | |
| Current size | Target Size | Difference | | |
| ------------- | ------------- | ------------------------ | | |
| ${{ env.NEW_SIZE }} bytes | ${{ env.OLD_SIZE }} bytes | ${{ env.DIFF }} bytes ${{ env.SIGN }} | |