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 f769f2a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/prof_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,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 +56,21 @@ 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') }} eq 1 ]]; then
source /root/.bashrc
fi
switch-php "${PHP_VERSION}"
cd profiling
cargo test --release --all-features
- name: Run phpt tests NTS
run: |
set -eux
echo ${{ contains(matrix.docker_image, 'alpine') }}
if [[ "${{ contains(matrix.docker_image, 'alpine') }}" == "1" ]]; then
source /root/.bashrc
fi
switch-php "${PHP_VERSION}"
libdir="/tmp/datadog-profiling"
cd profiling
Expand All @@ -80,6 +84,7 @@ jobs:
- name: Run phpt tests ZTS
run: |
set -eux
source /root/.bashrc || true
switch-php "${PHP_VERSION}-zts"
libdir="/tmp/datadog-profiling"
cd profiling
Expand Down

0 comments on commit f769f2a

Please sign in to comment.