Skip to content

first commit

first commit #1

Workflow file for this run

name: Benchmark
on:
push:
branches:
- main
workflow_dispatch:
jobs:
bench:
name: Benchmark
strategy:
fail-fast: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 20
- name: Install required global packages
run: npm i -g bun npm-check-updates
- name: Update & install packages
run: |
ncu -u
bun i
- name: Node.js Benchmark
run: node node.index.js > ./results/node.txt
- name: Bun.sh Benchmark
run: bun --bun bun.index.js > ./results/bun.txt
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "masfahru"
git add -A
git commit -m "🚀 Update Benchmark"
- name: GitHub Push
uses: ad-m/[email protected]
with:
branch: ${{ github.ref }}
directory: "."
github_token: ${{ secrets.GITHUB_TOKEN }}