From cc47a9387262fd709a894a0a28963c5ef76decf2 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 4 Dec 2020 05:05:25 -0500 Subject: [PATCH] actions take 52 --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0f35cde..d20fc425 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,3 +75,32 @@ jobs: set +e cd src source travis/${GAMOS}-install.sh + echo "gampath=$gampath" >> $GITHUB_ENV + echo "gam=$gam" >> $GITHUB_ENV + + - name: Basic Tests - all jobs + run: | + set +e + cd src + $python -m unittest discover --start-directory ./ --pattern "*_test.py" --buffer + touch $gampath/nobrowser.txt + $gam version extended + $gam version | grep runner # runner should be part of the path (not /tmp or such) + + - name: Basic Tests - builds jobs only + run: | + cd src + # Check Python version + vline=$($gam version | grep "Python ") + python_line=($vline) + this_python=${python_line[1]} + $python tools/a_atleast_b.py $this_python $MIN_PYTHON_VERSION + # Check OpenSSL version + vline=$($gam version extended | grep "OpenSSL ") + openssl_line=($vline) + this_openssl=${openssl_line[1]} + $python tools/a_atleast_b.py $this_openssl $MIN_OPENSSL_VERSION + Check TLS version in use + $gam version extended | grep TLSv1\.[23]; fi # Builds should default TLS 1.2 or 1.3 to Google + GAM_TLS_MIN_VERSION=TLSv1_2 $gam version extended location tls-v1-0.badssl.com:1010; [[ $? == 3 ]]; # expect fail since server doesn't support our TLS version +