-
-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (39 loc) Β· 1019 Bytes
/
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
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@v2
with:
version: 8
run_install: true
- name: Setup Composer
uses: php-actions/composer@v6
- name: Benchmark
run: pnpm update-benchmarks-readme
- name: Commit readme.md
run: |
git config user.name github-actions
git config user.email [email protected]
git commit -nam "chore: updated benchmarks"
git push
- name: Upload minification results
uses: actions/upload-artifact@v3
with:
name: minification-results
path: results/