Skip to content

Commit

Permalink
ci: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Jul 15, 2024
1 parent 659b6a3 commit 7b6ddb5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ jobs:
with:
submodules: 'recursive'
- id: envs
env:
GITHUB_EVENT_NAME: ${{ github.event_name }}
HAS_RUN_VERY_EXPENSIVE_LABEL: ${{ contains(github.event.pull_request.labels.*.name, 'run-very-expensive-tests') }}
run: |
if [[ "${{ github.event_name }}" == "pull_request" && "${{ github.event.pull_request.labels.*.name }}" == *"run-very-expensive-tests"* ]]; then
if [[ "${GITHUB_EVENT_NAME}" = "pull_request" && "${HAS_RUN_VERY_EXPENSIVE_LABEL}" = "true" ]]; then
echo "run_very_expensive_tests=1" >> $GITHUB_OUTPUT
elif [[ "${{ github.event_name }}" == "schedule"; then
elif [[ "${GITHUB_EVENT_NAME}" = "schedule" ]]; then
echo "run_very_expensive_tests=1" >> $GITHUB_OUTPUT
else
echo "run_very_expensive_tests=0" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 7b6ddb5

Please sign in to comment.