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

chore: test size-limit automation for CI #658

Merged
merged 4 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 24 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'size'
on:
pull_request:
branches:
- master
jobs:
size:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v1
- run: npm install -g npm
- run: npm install

- run: npm run bundle --workspaces --if-present
- run: npm run size-limit --workspaces --if-present

# commented out until the job can be configured
# - uses: andresz1/size-limit-action@v1
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# build_script: npm run bundle --workspaces --if-present
# script: npm run size-limit --workspaces --if-present
6 changes: 5 additions & 1 deletion demos/ledgerhq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
"test:coverage": "",
"test": ""
},
"version": "0.14.1"
"version": "0.14.1",
"devDependencies": {
"esbuild": "^0.15.16",
"size-limit": "^8.1.0"
}
}
6 changes: 5 additions & 1 deletion demos/sample-javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@
"test:coverage": "",
"test": ""
},
"version": "0.14.1"
"version": "0.14.1",
"devDependencies": {
"esbuild": "^0.15.16",
"size-limit": "^8.1.0"
}
}
1 change: 1 addition & 0 deletions docs/generated/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ <h1>Agent-JS Changelog</h1>
<h2>Version x.x.x</h2>
<ul>
<li>chore: links assets docs in index</li>
<li>chore: sets up new size-limit job for packages, in preparation for CI</li>
</ul>
<h2>Version 0.14.1</h2>
<ul>
Expand Down
4 changes: 3 additions & 1 deletion e2e/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
"@types/cypress": "^1.1.3",
"concurrently": "^7.3.0",
"cypress": "^10.3.1",
"esbuild": "^0.15.16",
"eslint-plugin-cypress": "^2.12.1",
"parcel": "^2.6.2",
"pm2": "^5.2.0"
"pm2": "^5.2.0",
"size-limit": "^8.1.0"
},
"dependencies": {
"@dfinity/agent": "^0.14.1",
Expand Down
4 changes: 3 additions & 1 deletion e2e/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
},
"dependencies": {
"@dfinity/agent": "^0.14.1",
"@dfinity/authentication": "^0.14.1",
"@dfinity/assets": "^0.14.1",
"@dfinity/authentication": "^0.14.1",
"@dfinity/identity": "^0.14.1",
"@dfinity/principal": "^0.14.1",
"@trust/webcrypto": "^0.9.2",
Expand All @@ -43,10 +43,12 @@
"@tsconfig/node17": "^1.0.1",
"@types/isomorphic-fetch": "^0.0.36",
"@types/text-encoding": "^0.0.36",
"esbuild": "^0.15.16",
"isomorphic-fetch": "^3.0.0",
"jest-environment-jsdom": "^28.1.3",
"locus": "^2.0.4",
"node-webcrypto-p11": "^2.5.0",
"size-limit": "^8.1.0",
"webcrypto-core": "^1.7.5"
}
}
Loading