Skip to content

Add benchmark suite with GitHub Actions workflow (#40) #377

Add benchmark suite with GitHub Actions workflow (#40)

Add benchmark suite with GitHub Actions workflow (#40) #377

Workflow file for this run

name: adamantite
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- name: lint
command: bun run check
- name: format
command: bun run format --check
- name: types
command: bun run typecheck
- name: analyze
command: bun run analyze
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.6
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}