Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add both #5

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 54 additions & 4 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@ concurrency:
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 }}

steps:
- name: Init path
id: git-path
run: |
echo '$PULL_REQUEST_HEAD_REF'

performance-testing:
runs-on: ubuntu-latest
needs: init

strategy:
fail-fast: false
Expand All @@ -23,13 +37,49 @@ jobs:
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 $PULL_REQUEST_CLONE_URL
echo $PULL_REQUEST_HEAD_REF
echo $PULL_REQUEST_BASE_REF
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 }}

- name: Apply PR 5
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 }}'