diff --git a/.github/workflows/setup-stackql.yml b/.github/workflows/setup-stackql.yml index ff8d321..888d515 100644 --- a/.github/workflows/setup-stackql.yml +++ b/.github/workflows/setup-stackql.yml @@ -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" @@ -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." \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 873acbc..8713439 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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}`); diff --git a/index.js b/index.js index e45c680..6a1d920 100644 --- a/index.js +++ b/index.js @@ -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}`);