Skip to content

build(deps): bump actions/checkout from 2 to 4 #46

build(deps): bump actions/checkout from 2 to 4

build(deps): bump actions/checkout from 2 to 4 #46

name: Run Benchmark on Change
on:
pull_request:
branches:
- master
jobs:
benchmark:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Pull Docker image
run: docker-compose pull benchmark
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
!**/*.md
!**/*.yml
!**/*.json
- name: Run benchmarks for changed files
if: steps.changed-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
docker-compose run benchmark python3 ./run_on_changes.py $ALL_CHANGED_FILES