mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-12 19:00:39 -07:00
34 lines
777 B
YAML
34 lines
777 B
YAML
name: Performance Check
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
os:
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
performance:
|
|
name: Performance
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20'
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: dist-${{ inputs.os }}
|
|
path: dist
|
|
- name: Check Performance
|
|
run: npm run perf:diff
|
|
- name: Archive npm failure logs
|
|
uses: actions/upload-artifact@v4
|
|
if: failure()
|
|
with:
|
|
name: npm-logs
|
|
path: ~/.npm/_logs
|