Skip to content

General improvements #8

General improvements

General improvements #8

Workflow file for this run

name: Run benchmarks
on:
pull_request:
workflow_dispatch:
push:
paths-ignore:
- 'README.md'
- '.gitignore'
- '.github/**'
- 'LICENSE'
- 'bench.bat'
branches:
- master
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install LuaJIT
run: sudo apt-get install -y luajit
- name: Setup PyPy
uses: actions/setup-python@v5
with:
python-version: pypy3.10
- name: Run benchmarks
run: node bench.js
- name: Commit new results
if: github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch'
uses: EndBug/add-and-commit@v7
with:
add: README.md
message: 'chore: update results'
default_author: github_actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}