mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
03f6419f99
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: benchmark
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# pull_request:
|
|
# paths-ignore:
|
|
# - "docs/**"
|
|
# - "*.md"
|
|
# branches:
|
|
# - main
|
|
# - "!v[0-9]*"
|
|
|
|
# https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml
|
|
env:
|
|
# 7 GiB by default on GitHub, setting to 6 GiB
|
|
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
|
|
NODE_OPTIONS: --max-old-space-size=6144
|
|
|
|
# Remove default permissions of GITHUB_TOKEN for security
|
|
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
|
cancel-in-progress: ${{ github.event_name != 'push' }}
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
- run: corepack enable
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
|
with:
|
|
node-version: 20
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Build (stub)
|
|
run: pnpm dev:prepare
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
- name: Run benchmarks
|
|
uses: CodSpeedHQ/action@0b631f8998f2389eb5144632b6f9f8fabd33a86e # v2.4.1
|
|
with:
|
|
run: pnpm vitest bench
|
|
token: ${{ secrets.CODSPEED_TOKEN }}
|