remove benchmark test event filter in validations pipeline

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman 2021-03-18 15:43:05 -04:00
parent 4bde850f04
commit b1b57f6ba6
No known key found for this signature in database
GPG Key ID: 5CB45AE22BAB7EA7

View File

@ -167,9 +167,9 @@ jobs:
Benchmark-Test: Benchmark-Test:
name: "Benchmark tests" name: "Benchmark tests"
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
# run only on push event (internal PRs) or on a pull_request event that is from a fork (external PR) # note: we want benchmarks to run on pull_request events in order to publish results to a sticky comment, and
# skip if this is a pull_request event on an internal PR (which is already covered by push events) # we also want to run on push such that merges to main are recorded to the cache. For this reason we don't filter
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository # the job by event.
steps: steps:
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
with: with:
@ -215,11 +215,7 @@ jobs:
id: benchmark id: benchmark
run: | run: |
REF_NAME=${GITHUB_REF##*/} make benchmark REF_NAME=${GITHUB_REF##*/} make benchmark
OUTPUT=$(make show-benchstat) echo "::set-output name=result::$(make show-benchstat)"
OUTPUT="${OUTPUT//'%'/'%25'}"
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
echo "::set-output name=result::$OUTPUT"
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with: