Add tests #302
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: Compressed Size | |
on: [pull_request] | |
jobs: | |
runner-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Install packages | |
run: pnpm install | |
- name: Check compressed size | |
uses: preactjs/compressed-size-action@v2 | |
with: | |
build-script: "production" | |
pattern: "./lib/**/*.js" | |
exclude: "{./lib/**/*.d.js,./lib/playwright/**,./lib/test/**}" |