-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (61 loc) · 2.38 KB
/
performance.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Performance testing
on:
pull_request:
concurrency:
group: performance-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
init:
runs-on: ubuntu-latest
outputs:
PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }}
PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }}
PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }}
performance-testing:
runs-on: ubuntu-latest
needs: init
strategy:
fail-fast: false
matrix:
php-versions: ['8.1']
name: performance-${{ matrix.php-versions }}
steps:
- name: Checkout server before PR
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
submodules: true
ref: ${{ github.event.pull_request.base.ref }}
- name: Checkout server before PR 2
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
submodules: true
ref: ${{ github.event.pull_request.head.ref }}
- name: Apply PR
env:
PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }}
PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }}
PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }}
run: |
echo pr/$PULL_REQUEST_HEAD_REF
echo pr/$PULL_REQUEST_BASE_REF
echo pr/$PULL_REQUEST_CLONE_URL
- name: Apply PR old
run: |
echo pr/${{ github.event.pull_request.head.ref }}
echo pr/${{ github.event.pull_request.base.ref }}
echo pr/${{ github.event.pull_request.head.repo.clone_url }}
- name: Apply PR 2
run: |
echo 'pr/${{ github.event.pull_request.head.ref }}'
echo 'pr/${{ github.event.pull_request.base.ref }}'
echo 'pr/${{ github.event.pull_request.head.repo.clone_url }}'
- name: Apply PR 3
run: |
echo pr/'${{ github.event.pull_request.head.ref }}'
echo pr/'${{ github.event.pull_request.base.ref }}'
echo pr/'${{ github.event.pull_request.head.repo.clone_url }}'
- name: Apply PR 4
run: |
echo ${{ needs.init.outputs.PULL_REQUEST_HEAD_REF }}
echo ${{ needs.init.outputs.PULL_REQUEST_BASE_REF }}
echo ${{ needs.init.outputs.PULL_REQUEST_CLONE_URL }}