Skip to content

Commit 97ec720

Browse files
committed
updated test
1 parent 7b06d89 commit 97ec720

File tree

3 files changed

+1
-95
lines changed

3 files changed

+1
-95
lines changed

.github/workflows/setup-stackql.yml

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ jobs:
4444
4545
SEMVER_REGEX="v[0-9]+\.[0-9]+\.[0-9]+"
4646
PLATFORM_REGEX="(Linux|Darwin|Windows|Homebrew)"
47-
# DATE_REGEX="BuildDate: \b\d{4}-\d{2}-\d{2}\b"
48-
# SHA_REGEX="\([0-9a-f]{7}\)"
4947
5048
if ! [[ "$VERSION_OUTPUT" =~ $SEMVER_REGEX ]]; then
5149
echo "Semantic version does not match expected format"
@@ -55,39 +53,5 @@ jobs:
5553
echo "Platform information does not match expected formats"
5654
exit 1
5755
fi
58-
# if ! [[ "$VERSION_OUTPUT" =~ $DATE_REGEX ]]; then
59-
# echo "Build date does not match expected format"
60-
# exit 1
61-
# fi
62-
# if ! [[ "$VERSION_OUTPUT" =~ $SHA_REGEX ]]; then
63-
# echo "Commit SHA does not match expected format"
64-
# exit 1
65-
# fi
6656
67-
echo "All components of the version output are validated successfully."
68-
69-
70-
71-
72-
# - name: Validate Stackql Version
73-
# run: |
74-
# stackql --version
75-
76-
# - name: Use GitHub Provider
77-
# run: |
78-
# stackql exec -i ./examples/github-example.iql
79-
# env:
80-
# STACKQL_GITHUB_USERNAME: ${{ secrets.STACKQL_GITHUB_USERNAME }}
81-
# STACKQL_GITHUB_PASSWORD: ${{ secrets.STACKQL_GITHUB_PASSWORD }}
82-
83-
# - name: Use Google Provider
84-
# run: |
85-
# stackql exec -i ./examples/google-example.iql
86-
# env:
87-
# GOOGLE_CREDENTIALS : ${{ secrets.GOOGLE_CREDENTIALS }}
88-
89-
# - name: Handle error
90-
# if: ${{ matrix.use_wrapper}}
91-
# continue-on-error: true
92-
# run: | ## specify a query file that doesnt exist
93-
# stackql exec -i ./examples/does-not-exist.iql
57+
echo "version output validated successfully."

dist/index.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6757,38 +6757,9 @@ const io = __nccwpck_require__(9234);
67576757

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

6764-
// async function downloadCLI(osPlatform){
6765-
// try {
6766-
6767-
// core.info(`downloading stackql binary for ${osPlatform}`);
6768-
// const url = urls[osPlatform]
6769-
// core.debug(`binary location: ${url}`);
6770-
6771-
// switch (osPlatform) {
6772-
// case 'win32':
6773-
// return await tc.extractZip(await tc.downloadTool(url));
6774-
// case 'darwin':
6775-
// let tmpPath = await tc.downloadTool(url);
6776-
// core.info(`extracting mac pkg in ${tmpPath}...`);
6777-
// const installPath = '/Users/runner/work/_temp/stackql-pkg';
6778-
// execSync(`pkgutil --expand-full ${tmpPath} ${installPath}`);
6779-
// return `${installPath}/Payload`;
6780-
// case 'linux':
6781-
// return await tc.extractZip(await tc.downloadTool(url));
6782-
// default:
6783-
// throw new Error(`Unsupported platform: ${osPlatform}`);
6784-
// }
6785-
6786-
// } catch (error) {
6787-
// core.error(error);
6788-
// throw error;
6789-
// }
6790-
// }
6791-
67926763
async function downloadCLI(osPlatform) {
67936764
try {
67946765
core.info(`Preparing to download/install stackql for ${osPlatform}`);

index.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,9 @@ const io = require('@actions/io');
88

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

15-
// async function downloadCLI(osPlatform){
16-
// try {
17-
18-
// core.info(`downloading stackql binary for ${osPlatform}`);
19-
// const url = urls[osPlatform]
20-
// core.debug(`binary location: ${url}`);
21-
22-
// switch (osPlatform) {
23-
// case 'win32':
24-
// return await tc.extractZip(await tc.downloadTool(url));
25-
// case 'darwin':
26-
// let tmpPath = await tc.downloadTool(url);
27-
// core.info(`extracting mac pkg in ${tmpPath}...`);
28-
// const installPath = '/Users/runner/work/_temp/stackql-pkg';
29-
// execSync(`pkgutil --expand-full ${tmpPath} ${installPath}`);
30-
// return `${installPath}/Payload`;
31-
// case 'linux':
32-
// return await tc.extractZip(await tc.downloadTool(url));
33-
// default:
34-
// throw new Error(`Unsupported platform: ${osPlatform}`);
35-
// }
36-
37-
// } catch (error) {
38-
// core.error(error);
39-
// throw error;
40-
// }
41-
// }
42-
4314
async function downloadCLI(osPlatform) {
4415
try {
4516
core.info(`Preparing to download/install stackql for ${osPlatform}`);

0 commit comments

Comments
 (0)