-
-
Notifications
You must be signed in to change notification settings - Fork 31
51 lines (40 loc) Β· 1.07 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Benchmark
on:
pull_request:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
repository: ${{ github.repository }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: true
- name: Setup Composer
uses: php-actions/composer@v6
with:
working_dir: packages/minifiers
- name: Benchmark
run: pnpm bench-all
- name: Update README
run: pnpm update-readme
- name: Commit README.md
run: |
# Ignored by Renovate
git config user.name GitHub Actions
git config user.email github-actions@github.com
git add -u
git diff-index --quiet HEAD || git commit -nm "chore: updated benchmarks"
git push