Import SDK charts #37
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: Bundle size | |
on: [pull_request] | |
jobs: | |
run-builds: | |
name: Run builds | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install React dependencies | |
working-directory: ./react | |
run: npm ci | |
- name: Run React build web | |
working-directory: ./react | |
run: npm run build-web | |
- name: Run React build | |
working-directory: ./react | |
run: npm run build | |
- name: Diff bundle sizes | |
uses: preactjs/compressed-size-action@v2 | |
with: | |
cwd: react |