Skip to content

Commit 8d15e29

Browse files
added use wrapper as part of matrix
1 parent a866ae1 commit 8d15e29

1 file changed

Lines changed: 4 additions & 46 deletions

File tree

.github/workflows/setup-stackql.yml

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -12,55 +12,13 @@ defaults:
1212
shell: bash
1313

1414
jobs:
15-
stackql-test-matrix-no-wrapper:
15+
stackql-test-matrix:
1616
name: Stackql local run on ${{ matrix.os }} without wrapper
1717
runs-on: ${{ matrix.os }}
1818
strategy:
1919
matrix:
2020
os: [ubuntu-latest, windows-latest, macos-latest]
21-
22-
steps:
23-
- name: Checkout
24-
uses: actions/checkout@v3
25-
26-
- name: Setup Stackql
27-
uses: ./
28-
29-
- name: Validate Stackql Version
30-
run: |
31-
stackql --version
32-
33-
- name: Use GitHub Provider
34-
run: |
35-
stackql exec -i ./examples/github-example.iql --auth='{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
36-
env:
37-
STACKQL_GITHUB_CREDS: ${{ secrets.STACKQL_GITHUB_CREDS }}
38-
39-
- name: Prep Google Creds (Windows)
40-
if: ${{ matrix.os }} == 'windows-latest'
41-
run: | ## use the secret to create json file
42-
$GoogleCreds = [System.Environment]::GetEnvironmentVariable("GOOGLE_CREDS_ENV")
43-
$GoogleCredsDecoded = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($GoogleCreds))
44-
Write-Output $GoogleCredsDecoded | Set-Content sa-key.json
45-
shell: pwsh
46-
env:
47-
GOOGLE_CREDS_ENV: ${{ secrets.GOOGLE_CREDS }}
48-
49-
- name: Prep Google Creds (bash)
50-
if: ${{ matrix.os }} != 'windows-latest'
51-
run: | ## use the secret to create json file
52-
sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
53-
54-
- name: Use Google Provider
55-
run: |
56-
stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
57-
58-
stackql-test-matrix-with-wrapper:
59-
name: Stackql local run on ${{ matrix.os }} with wrapper
60-
runs-on: ${{ matrix.os }}
61-
strategy:
62-
matrix:
63-
os: [ubuntu-latest, windows-latest, macos-latest]
21+
use_wrapper: [true, false]
6422

6523
steps:
6624
- name: Checkout
@@ -69,7 +27,7 @@ jobs:
6927
- name: Setup Stackql
7028
uses: ./
7129
with:
72-
use_wrapper: 'true'
30+
use_wrapper: ${{matrix.use_wrapper}}
7331

7432
- name: Validate Stackql Version
7533
run: |
@@ -99,7 +57,7 @@ jobs:
9957
- name: Use Google Provider
10058
run: |
10159
stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
102-
60+
10361
#### uncomment the step to see error handling
10462
# - name: Handle error
10563
# run: | ## use the secret to create json file

0 commit comments

Comments
 (0)