Merge pull request #2403 from herwinw/struct_new #104
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Performance Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
DOCKER_FLAGS: "" | |
CI: 1 | |
jobs: | |
performance_test: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Get relevant SHA (PR) | |
if: ${{ github.event_name == 'pull_request' }} | |
shell: bash | |
run: | | |
echo "LAST_COMMIT_SHA=${{ github.event.pull_request.head.sha }}" >> ${GITHUB_ENV} | |
- name: Get relevant SHA (Push) | |
if: ${{ github.event_name == 'push' }} | |
shell: bash | |
run: | | |
echo "LAST_COMMIT_SHA=${GITHUB_SHA}" >> ${GITHUB_ENV} | |
- name: Get branch name | |
shell: bash | |
run: echo "BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> ${GITHUB_ENV} | |
- name: Run perf test | |
run: rake docker_test_perf | |
env: | |
STATS_API_SECRET: ${{ secrets.STATS_API_SECRET }} |