Skip to content

Commit

Permalink
trying to fix GitHub Actions notest
Browse files Browse the repository at this point in the history
  • Loading branch information
kirxkirx committed Jul 18, 2023
1 parent 777b86a commit 54c878a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build_and_test_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ jobs:
run: bash -n util/examples/test_vast.sh
- name: Syntax-check the NMW transient search script
run: bash -n util/transients/transient_factory_test31.sh
- name: Check commit message
- id: check_commit
run: |
commit_message=$(git log --format=%B -n 1)
commit_message=$(git log --format=%B -n 1 ${{ github.event.after }})
if [[ "${commit_message}" == *"notest"* ]]; then
echo "Commit contains 'notest'. Skipping tests."
exit 0
echo "::set-output name=skip::true"
else
echo "::set-output name=skip::false"
fi
- name: Prepare for the test
run: echo "1" > ../THIS_IS_HPCC
run: echo "1" > ../THIS_IS_HPCC
if: steps.check_commit.outputs.skip != 'true'
- name: Test VaST
run: util/examples/test_vast.sh
if: steps.check_commit.outputs.skip != 'true'

0 comments on commit 54c878a

Please sign in to comment.