Skip to content

Commit

Permalink
updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyaven committed Apr 26, 2024
1 parent 7b06d89 commit 97ec720
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 95 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/setup-stackql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ jobs:
SEMVER_REGEX="v[0-9]+\.[0-9]+\.[0-9]+"
PLATFORM_REGEX="(Linux|Darwin|Windows|Homebrew)"
# DATE_REGEX="BuildDate: \b\d{4}-\d{2}-\d{2}\b"
# SHA_REGEX="\([0-9a-f]{7}\)"
if ! [[ "$VERSION_OUTPUT" =~ $SEMVER_REGEX ]]; then
echo "Semantic version does not match expected format"
Expand All @@ -55,39 +53,5 @@ jobs:
echo "Platform information does not match expected formats"
exit 1
fi
# if ! [[ "$VERSION_OUTPUT" =~ $DATE_REGEX ]]; then
# echo "Build date does not match expected format"
# exit 1
# fi
# if ! [[ "$VERSION_OUTPUT" =~ $SHA_REGEX ]]; then
# echo "Commit SHA does not match expected format"
# exit 1
# fi
echo "All components of the version output are validated successfully."
# - name: Validate Stackql Version
# run: |
# stackql --version

# - name: Use GitHub Provider
# run: |
# stackql exec -i ./examples/github-example.iql
# env:
# STACKQL_GITHUB_USERNAME: ${{ secrets.STACKQL_GITHUB_USERNAME }}
# STACKQL_GITHUB_PASSWORD: ${{ secrets.STACKQL_GITHUB_PASSWORD }}

# - name: Use Google Provider
# run: |
# stackql exec -i ./examples/google-example.iql
# env:
# GOOGLE_CREDENTIALS : ${{ secrets.GOOGLE_CREDENTIALS }}

# - name: Handle error
# if: ${{ matrix.use_wrapper}}
# continue-on-error: true
# run: | ## specify a query file that doesnt exist
# stackql exec -i ./examples/does-not-exist.iql
echo "version output validated successfully."
29 changes: 0 additions & 29 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6757,38 +6757,9 @@ const io = __nccwpck_require__(9234);

const urls = {
'linux': 'https://releases.stackql.io/stackql/latest/stackql_linux_amd64.zip',
// 'darwin': 'https://storage.googleapis.com/stackql-public-releases/latest/stackql_darwin_multiarch.pkg',
'win32': 'https://releases.stackql.io/stackql/latest/stackql_windows_amd64.zip',
}

// async function downloadCLI(osPlatform){
// try {

// core.info(`downloading stackql binary for ${osPlatform}`);
// const url = urls[osPlatform]
// core.debug(`binary location: ${url}`);

// switch (osPlatform) {
// case 'win32':
// return await tc.extractZip(await tc.downloadTool(url));
// case 'darwin':
// let tmpPath = await tc.downloadTool(url);
// core.info(`extracting mac pkg in ${tmpPath}...`);
// const installPath = '/Users/runner/work/_temp/stackql-pkg';
// execSync(`pkgutil --expand-full ${tmpPath} ${installPath}`);
// return `${installPath}/Payload`;
// case 'linux':
// return await tc.extractZip(await tc.downloadTool(url));
// default:
// throw new Error(`Unsupported platform: ${osPlatform}`);
// }

// } catch (error) {
// core.error(error);
// throw error;
// }
// }

async function downloadCLI(osPlatform) {
try {
core.info(`Preparing to download/install stackql for ${osPlatform}`);
Expand Down
29 changes: 0 additions & 29 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,9 @@ const io = require('@actions/io');

const urls = {
'linux': 'https://releases.stackql.io/stackql/latest/stackql_linux_amd64.zip',
// 'darwin': 'https://storage.googleapis.com/stackql-public-releases/latest/stackql_darwin_multiarch.pkg',
'win32': 'https://releases.stackql.io/stackql/latest/stackql_windows_amd64.zip',
}

// async function downloadCLI(osPlatform){
// try {

// core.info(`downloading stackql binary for ${osPlatform}`);
// const url = urls[osPlatform]
// core.debug(`binary location: ${url}`);

// switch (osPlatform) {
// case 'win32':
// return await tc.extractZip(await tc.downloadTool(url));
// case 'darwin':
// let tmpPath = await tc.downloadTool(url);
// core.info(`extracting mac pkg in ${tmpPath}...`);
// const installPath = '/Users/runner/work/_temp/stackql-pkg';
// execSync(`pkgutil --expand-full ${tmpPath} ${installPath}`);
// return `${installPath}/Payload`;
// case 'linux':
// return await tc.extractZip(await tc.downloadTool(url));
// default:
// throw new Error(`Unsupported platform: ${osPlatform}`);
// }

// } catch (error) {
// core.error(error);
// throw error;
// }
// }

async function downloadCLI(osPlatform) {
try {
core.info(`Preparing to download/install stackql for ${osPlatform}`);
Expand Down

0 comments on commit 97ec720

Please sign in to comment.