@@ -12,78 +12,20 @@ defaults:
1212 shell : bash
1313
1414jobs :
15- stackql-tests-linux :
16- name : ' Stackql Tests (Linux)'
17- runs-on : ubuntu-latest
18-
19- steps :
20- - name : Checkout
21- uses : actions/checkout@v3
22-
23- - name : Setup stackql
24- uses : ./
25-
26- - name : Validate Stackql Version
27- run : |
28- stackql --version
29-
30- - name : Use GitHub Provider
31- run : |
32- stackql exec -i ./examples/github-example.iql --auth='{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
33- env :
34- STACKQL_GITHUB_CREDS : ${{ secrets.STACKQL_GITHUB_CREDS }}
35-
36- - name : Prep Google Creds (bash)
37- run : | # # use the secret to create json file
38- sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
39-
40- - name : Use Google Provider
41- run : |
42- stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
43-
44- # #### uncomment the step to see error handling
45- # - name: Handle error
46- # run: | ## use the secret to create json file
47- # stackql exec -i ./examples/github-example.iql --auth="${INVALID_AUTH}"
48-
49- stackql-tests-mac :
50- name : ' Stackql Tests (MacOS)'
51- runs-on : macos-latest
52-
53- steps :
54- - name : Checkout
55- uses : actions/checkout@v3
56-
57- - name : Setup stackql
58- uses : ./
59-
60- - name : Validate Stackql Version
61- run : |
62- stackql --version
63-
64- - name : Use GitHub Provider
65- run : |
66- stackql exec -i ./examples/github-example.iql --auth='{ "github": { "type": "basic", "credentialsenvvar": "STACKQL_GITHUB_CREDS" } }'
67- env :
68- STACKQL_GITHUB_CREDS : ${{ secrets.STACKQL_GITHUB_CREDS }}
69-
70- - name : Prep Google Creds (bash)
71- run : | # # use the secret to create json file
72- sudo echo ${{ secrets.GOOGLE_CREDS }} | base64 -d > sa-key.json
73-
74- - name : Use Google Provider
75- run : |
76- stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
77-
78- stackql-tests-windows :
79- name : ' Stackql Tests (Windows)'
80- runs-on : windows-latest
81-
15+ stackql-test-matrix :
16+ name : ' Terraform Run Local No Wrapper'
17+ runs-on : ${{ matrix.os }}
18+ strategy :
19+ matrix :
20+ os : [ubuntu-latest, windows-latest, macos-latest]
21+ defaults :
22+ run :
23+ working-directory : ./.github/workflows/data/local
8224 steps :
8325 - name : Checkout
8426 uses : actions/checkout@v3
8527
86- - name : Setup stackql
28+ - name : Setup Terraform
8729 uses : ./
8830
8931 - name : Validate Stackql Version
@@ -108,20 +50,9 @@ jobs:
10850 - name : Use Google Provider
10951 run : |
11052 stackql exec -i ./examples/google-example.iql --auth='{ "google": { "type": "service_account", "credentialsfilepath": "sa-key.json" }}'
53+
54+ # #### uncomment the step to see error handling
55+ # - name: Handle error
56+ # run: | ## use the secret to create json file
57+ # stackql exec -i ./examples/github-example.iql --auth="${INVALID_AUTH}"
11158
112-
113- stackql-test-matrix :
114- name : ' Terraform Run Local No Wrapper'
115- runs-on : ${{ matrix.os }}
116- strategy :
117- matrix :
118- os : [ubuntu-latest, windows-latest, macos-latest]
119- defaults :
120- run :
121- working-directory : ./.github/workflows/data/local
122- steps :
123- - name : Checkout
124- uses : actions/checkout@v3
125-
126- - name : Setup Terraform
127- uses : ./
0 commit comments