Skip to content

Commit

Permalink
ci: add esbuild bundle action
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Oct 19, 2024
1 parent 51c41ec commit 672eaf6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: ci

env:
ANALYZE: true

on:
push:
branches: [main]
Expand Down Expand Up @@ -35,10 +38,9 @@ jobs:
run: pnpm lint --reporter=github

- name: Run Test
run: pnpm run test

- name: Tests Summary
run: cat ${{github.workspace}}/example/tests/coverage-reports/coverage-summary.md >> $GITHUB_STEP_SUMMARY
run: |
pnpm run test
cat ${{github.workspace}}/example/tests/coverage-reports/coverage-summary.md >> $GITHUB_STEP_SUMMARY
- name: Upload Coverage
uses: paambaati/codeclimate-action@v9.0.0
Expand All @@ -49,9 +51,7 @@ jobs:
workingDirectory: ${{github.workspace}}/lib
coverageLocations: ${{github.workspace}}/example/tests/coverage-reports/*.info:lcov

- uses: preactjs/compressed-size-action@v2
- name: Analyze esbuild bundle size
uses: exoego/esbuild-bundle-analyzer@v1
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
install-script: 'echo noop'
build-script: 'build'
cwd: lib
metafiles: "lib/dist/metafile-esm.json"

0 comments on commit 672eaf6

Please sign in to comment.