Skip to content

Commit

Permalink
WIP: Install test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanoogian committed Jun 13, 2024
1 parent 9df1e73 commit e98bb90
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/install-test.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -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: $?"

0 comments on commit e98bb90

Please sign in to comment.