Skip to content

Commit

Permalink
chore(ci): replace gzip script w/ CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed Aug 2, 2024
1 parent 2ebc4ac commit 1f310ce
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 159 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,15 @@ jobs:
- name: Report
run: deno coverage

build:
name: Build
gzip:
name: Module Size
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: oven-sh/setup-bun@v2
with:
deno-version: 1.45

- name: Build
run: deno task build
bun-version: latest

- name: Report Size
run: deno task gzip
- name: gzip (bytes)
run: |
bun build --minify mod.ts | bunx terser --mangle --compress --module --ecma=2020 | gzip -9 | wc -c
3 changes: 1 addition & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"tasks": {
"build": "deno run -A scripts/build.ts",
"gzip": "deno run -A scripts/gzip.ts"
"build": "deno run -A scripts/build.ts"
},
"lint": {
"rules": {
Expand Down
121 changes: 27 additions & 94 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 0 additions & 54 deletions scripts/gzip.ts

This file was deleted.

0 comments on commit 1f310ce

Please sign in to comment.