]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
adding shellcheck bourne test
authorBimba Shrestha <bimbashrestha@fb.com>
Tue, 2 Jun 2020 16:08:16 +0000 (09:08 -0700)
committerBimba Shrestha <bimbashrestha@fb.com>
Tue, 2 Jun 2020 16:08:16 +0000 (09:08 -0700)
.github/workflows/generic-dev.yml

index 5ee3123e62762a7ae98dbd103e9579b78fb663db..76ce1416490a32121e40e7686cb461a2d711fd0e 100644 (file)
@@ -170,3 +170,13 @@ jobs:
         # sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix; (doesn't work)
         sudo apt-get install gcc-mingw-w64
         CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CFLAGS="-Werror -O1" make zstd
+
+  bourne-shell:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - name: Bourne shell compatibility (shellcheck)
+      run: |
+        wget https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz
+        tar -xf shellcheck-v0.7.1.linux.x86_64.tar.xz
+        shellcheck-v0.7.1/shellcheck --shell=sh --severity=warning tests/playTests.sh