Skip to content

additional format check for put_two_sources_in_one_field, test large … #361

additional format check for put_two_sources_in_one_field, test large …

additional format check for put_two_sources_in_one_field, test large … #361

name: macOS build and test
on: [push]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Check commit message
id: check_commit
run: |
commit_message=$(git log --format=%B -n 1 ${{ github.event.after }})
if [[ "${commit_message}" == *"notest"* ]]; then
echo "Commit contains 'notest'. Skipping tests."
echo "SKIP=true" >> $GITHUB_ENV
else
echo "SKIP=false" >> $GITHUB_ENV
fi
- name: Install MacPorts
run: |
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
source ./macports-ci install
if: env.SKIP != 'true'
- name: port upgrade outdated
run: sudo port upgrade outdated
if: env.SKIP != 'true'
- name: Install gcc, g++, gfortran, and wget
run: sudo port install gcc12 wget
if: env.SKIP != 'true'
- name: Install X11 header files
run: sudo port install xorg-libX11
if: env.SKIP != 'true'
- name: Install libpng
run: sudo port install libpng
if: env.SKIP != 'true'
- name: Install shellcheck
run: sudo port install shellcheck
if: env.SKIP != 'true'
- name: make VaST
run: make
if: env.SKIP != 'true'
- name: Shellcheck VaST BASH scripts
run: |
for i in lib/*sh util/*sh util/transients/*sh util/examples/*sh; do
shellcheck --severity=error $i
done
if: env.SKIP != 'true'
- name: prepare for the test
run: echo "1" > ../THIS_IS_HPCC
if: env.SKIP != 'true'
- name: test VaST
run: util/examples/test_vast.sh
if: env.SKIP != 'true'