check http or https access to period search servers, forget ping check #365
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |