Skip to content

Commit

Permalink
chore: test size-limit automation for CI (#658)
Browse files Browse the repository at this point in the history
* size-limit automation

* changelog
  • Loading branch information
krpeacock committed Dec 5, 2022
1 parent 6e5b2c6 commit caf323d
Show file tree
Hide file tree
Showing 17 changed files with 1,564 additions and 28 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/size-limit.yml
@@ -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
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
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
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
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
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"
}
}

0 comments on commit caf323d

Please sign in to comment.