Skip to content

Commit 2d914aa

Browse files
committed
platform testing
1 parent 129fd75 commit 2d914aa

3 files changed

Lines changed: 24 additions & 40 deletions

File tree

.github/workflows/setup-stackql.yml

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,21 @@ jobs:
5959

6060
- name: Validate Stackql Version
6161
run: |
62-
brew install tree
63-
tree /Users/runner/work/_temp/
6462
stackql --version
6563
66-
# - name: Use GitHub Provider
67-
# run: |
68-
# stackql exec -i ./examples/github-example.iql --auth="${AUTH}"
69-
# env:
70-
# AUTH: ${{ vars.AUTH }} ##'{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
71-
# STACKQL_GITHUB_CREDS: ${{ secrets.STACKQL_GITHUB_CREDS }}
64+
- name: Use GitHub Provider
65+
run: |
66+
stackql exec -i ./examples/github-example.iql --auth="${AUTH}"
67+
env:
68+
AUTH: ${{ vars.AUTH }} ##'{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
69+
STACKQL_GITHUB_CREDS: ${{ secrets.STACKQL_GITHUB_CREDS }}
7270

73-
# - name: Use Google Provider
74-
# run: | ## use the secret to create json file
75-
# sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
76-
# stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
77-
# env:
78-
# AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
71+
- name: Use Google Provider
72+
run: | ## use the secret to create json file
73+
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
74+
stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
75+
env:
76+
AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
7977

8078
stackql-tests-windows:
8179
name: 'Stackql Tests (Windows)'
@@ -92,16 +90,16 @@ jobs:
9290
run: |
9391
stackql.exe --version
9492
95-
# - name: Use GitHub Provider
96-
# run: |
97-
# stackql exec -i ./examples/github-example.iql --auth="${AUTH}"
98-
# env:
99-
# AUTH: ${{ vars.AUTH }} ##'{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
100-
# STACKQL_GITHUB_CREDS: ${{ secrets.STACKQL_GITHUB_CREDS }}
93+
- name: Use GitHub Provider
94+
run: |
95+
stackql exec -i ./examples/github-example.iql --auth="${AUTH}"
96+
env:
97+
AUTH: ${{ vars.AUTH }} ##'{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
98+
STACKQL_GITHUB_CREDS: ${{ secrets.STACKQL_GITHUB_CREDS }}
10199

102-
# - name: Use Google Provider
103-
# run: | ## use the secret to create json file
104-
# sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
105-
# stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
106-
# env:
107-
# AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
100+
- name: Use Google Provider
101+
run: | ## use the secret to create json file
102+
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
103+
stackql exec -i ./examples/google-example.iql --auth="${AUTH}"
104+
env:
105+
AUTH: ${{ vars.AUTH }} ## '{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'

dist/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6724,7 +6724,6 @@ async function downloadCLI(osPlatform){
67246724
case 'win32':
67256725
return await tc.extractZip(await tc.downloadTool(url));
67266726
case 'darwin':
6727-
// let tmpPath = await tc.extractXar(await tc.downloadTool(url));
67286727
let tmpPath = await tc.downloadTool(url);
67296728
core.info(`extracting mac pkg in ${tmpPath}...`);
67306729
const installPath = '/Users/runner/work/_temp/stackql-pkg';
@@ -6768,12 +6767,6 @@ async function setup() {
67686767
// download and extract stackql binary
67696768
const cliPath = await downloadCLI(osPlatform)
67706769

6771-
6772-
// │ └── bdee0361-f719-433d-81b4-cce7f4d6c594
6773-
// │ ├── Bom
6774-
// │ ├── PackageInfo
6775-
// │ └── Payload
6776-
67776770
core.debug(`path to cli: ${cliPath}`);
67786771

67796772
// set perms and make executable

index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ async function downloadCLI(osPlatform){
2222
case 'win32':
2323
return await tc.extractZip(await tc.downloadTool(url));
2424
case 'darwin':
25-
// let tmpPath = await tc.extractXar(await tc.downloadTool(url));
2625
let tmpPath = await tc.downloadTool(url);
2726
core.info(`extracting mac pkg in ${tmpPath}...`);
2827
const installPath = '/Users/runner/work/_temp/stackql-pkg';
@@ -66,12 +65,6 @@ async function setup() {
6665
// download and extract stackql binary
6766
const cliPath = await downloadCLI(osPlatform)
6867

69-
70-
// │ └── bdee0361-f719-433d-81b4-cce7f4d6c594
71-
// │ ├── Bom
72-
// │ ├── PackageInfo
73-
// │ └── Payload
74-
7568
core.debug(`path to cli: ${cliPath}`);
7669

7770
// set perms and make executable

0 commit comments

Comments
 (0)