Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl committed Oct 12, 2024
1 parent 5e07885 commit 7814f1a
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/prof_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

defaults:
run:
shell: bash

jobs:
profiling-tests:
strategy:
Expand Down Expand Up @@ -34,14 +38,16 @@ jobs:

container:
image: ${{ matrix.docker_image }}
options: --user root

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true

- name: Bake me into the image
- name: Bake me into the base image
if: contains(matrix.docker_image, 'alpine')
run: |
apk add --no-cache tar
Expand All @@ -54,19 +60,20 @@ jobs:

- name: Run cargo tests
run: |
if [ -d '/opt/rh/devtoolset-7' ] ; then
set +eo pipefail
source scl_source enable devtoolset-7
set -eo pipefail
fi
set -eux
if [[ "${{ contains(matrix.docker_image, 'alpine') }}" == "true" ]]; then
source /root/.bashrc
fi
switch-php "${PHP_VERSION}"
cd profiling
cargo test --release --all-features
- name: Run phpt tests NTS
run: |
set -eux
if [[ "${{ contains(matrix.docker_image, 'alpine') }}" == "true" ]]; then
source /root/.bashrc
fi
switch-php "${PHP_VERSION}"
libdir="/tmp/datadog-profiling"
cd profiling
Expand All @@ -80,6 +87,9 @@ jobs:
- name: Run phpt tests ZTS
run: |
set -eux
if [[ "${{ contains(matrix.docker_image, 'alpine') }}" == "true" ]]; then
source /root/.bashrc
fi
switch-php "${PHP_VERSION}-zts"
libdir="/tmp/datadog-profiling"
cd profiling
Expand Down

0 comments on commit 7814f1a

Please sign in to comment.