diff --git a/.github/workflows/functional-tests.yml b/.github/workflows/functional-tests.yml index 1f7a14039..30e9a785d 100644 --- a/.github/workflows/functional-tests.yml +++ b/.github/workflows/functional-tests.yml @@ -35,4 +35,22 @@ jobs: - name: Run Tests shell: bash run: | - echo "Hello" \ No newline at end of file + case "${{ matrix.type }}" in + "java" ) + ./gradlew ftest ;; + "jar" ) + ./gradlew build + ./gradlew ftest -Dft.fcli=build/libs/fcli.jar ;; + "native" ) + case "${{ matrix.os }}" in + "ubuntu-latest" ) + curl url -fsSL -o - https://github.com/fortify-ps/fcli/releases/download/dev_develop/fcli-linux.tgz | tar -zxvf - + ./gradlew ftest -Dft.fcli=./fcli ;; + "windows-latest" ) + curl url -fsSL -o - https://github.com/fortify-ps/fcli/releases/download/dev_develop/fcli-windows.zip | 7z e -si + ./gradlew ftest -Dft.fcli=./fcli.exe ;; + "macos-latest" ) + curl url -fsSL -o - https://github.com/fortify-ps/fcli/releases/download/dev_develop/fcli-mac.tgz | tar -zxvf - + ./gradlew ftest -Dft.fcli=./fcli ;; + esac ;; + esac \ No newline at end of file