Skip to content

chore: make it beautiful #34

chore: make it beautiful

chore: make it beautiful #34

Workflow file for this run

name: build & log
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- run: sudo apt install hyperfine -y
- run: pnpm install
- run: pnpm nx run-many -t build build-wp build-es -p host
- run: echo "rspack" >> build.log && ls -lah dist/host/rspack >> build.log
- run: echo "webpack" >> build.log && ls -lah dist/host/webpack >> build.log
- run: echo "esbuild" >> build.log && ls -lah dist/host/esbuild/browser >> build.log
- run: cat build.log
- run: hyperfine -n "Webpack" "pnpm nx build-wp host" -n "Rspack" "pnpm nx build host" -n "Esbuild" "pnpm nx build-es host" --prepare "rm -rf .angular dist" --export-markdown perf.md
- name: Commit & Push
run: |
git config --local user.email "[email protected]"
git config --local user.name "Edouard Bozon"
git add build.log perf.md
git commit -m "chore: update perf logs"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}