From e98bb90395f9abc4342d67579f19293f996f10d3 Mon Sep 17 00:00:00 2001 From: Nic Manoogian Date: Thu, 13 Jun 2024 11:02:47 -0400 Subject: [PATCH] WIP: Install test --- .github/workflows/install-test.yml | 15 +++++++++++++++ scripts/test.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/install-test.yml create mode 100644 scripts/test.sh diff --git a/.github/workflows/install-test.yml b/.github/workflows/install-test.yml new file mode 100644 index 00000000..9a6383a4 --- /dev/null +++ b/.github/workflows/install-test.yml @@ -0,0 +1,15 @@ +name: Nic Test + +on: [push] + +jobs: + windows: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + path: ./src/github.com/${{ github.repository }} + - name: Install CLI + shell: bash + run: ./scripts/test.sh diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100644 index 00000000..917817e4 --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# +curl --version +echo "############################# Non-Redirect with -w" +curl --tlsv1.2 --proto "=https" -w "%{http_code}" --silent --retry 5 -o "binary" -LN -D - "https://objects.githubusercontent.com/github-production-release-asset-2e65be/212754358/9c7f8213-3b1a-402a-b334-83c42c0b33d0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240613%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240613T151002Z&X-Amz-Expires=300&X-Amz-Signature=9374701e9836aba95ba627ab04515f0468b7e303bdf8470465e09068c335ecb8&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=212754358&response-content-disposition=attachment%3B%20filename%3Ddoppler_3.68.0_windows_amd64.zip&response-content-type=application%2Foctet-stream" 2>&1 +echo "Status Code: $?" + +echo "############################# Redirect without -w" +curl --tlsv1.2 --proto "=https" --silent --retry 5 -o "binary" -LN -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 +echo "Status Code: $?" + +echo "############################# Redirect with -w but no -L" +curl --tlsv1.2 --proto "=https" -w "%{http_code}" --silent --retry 5 -o "binary" -N -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 +echo "Status Code: $?" + +echo "############################# Redirect without -w but no -L" +curl --tlsv1.2 --proto "=https" --retry 5 -o "binary" -N -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 +echo "Status Code: $?" + +echo "############################# Redirect with -w Silent" +curl --tlsv1.2 --proto "=https" -w "%{http_code}" --silent --retry 5 -o "binary" -LN -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 +echo "Status Code: $?" + +echo "############################# Redirect with -w Not Silent" +curl --tlsv1.2 --proto "=https" -w "%{http_code}" --retry 5 -o "binary" -LN -D - "https://cli.doppler.com/download?os=windows&arch=amd64&format=zip" 2>&1 +echo "Status Code: $?"