Skip to content

Commit e3c02b2

Browse files
authored
Merge pull request #25 from stackql/feature/updates
updated tests
2 parents e13ecc4 + 72d1189 commit e3c02b2

6 files changed

+12
-13
lines changed

.github/workflows/npm-test.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ jobs:
88

99
steps:
1010
- uses: actions/[email protected]
11-
- name: Use Node.js 16
12-
uses: actions/setup-node@v4.0.2
11+
- name: Setup Node.js environment
12+
uses: actions/setup-node@v4.1.0
1313
with:
14-
node-version: 16.x
14+
node-version: 18
1515
- run: npm ci
16-
- run: npm test
17-
16+
- run: npm test

.github/workflows/stackql-assert-test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# Pull required providers
2222
#
2323
- name: pull required providers
24-
uses: stackql/[email protected].1
24+
uses: stackql/[email protected].3
2525
with:
2626
is_command: true
2727
query: "REGISTRY PULL google; REGISTRY PULL github"
@@ -35,7 +35,7 @@ jobs:
3535
test_query: |
3636
SELECT name
3737
FROM google.compute.instances
38-
WHERE project = 'stackql-demo' AND zone = 'australia-southeast1-a' AND name = 'stackql-demo-001';
38+
WHERE project = 'stackql-integration-tests' AND zone = 'australia-southeast1-a' and name = 'stackql-test-001';
3939
expected_rows: 1
4040
env:
4141
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
@@ -47,7 +47,7 @@ jobs:
4747
uses: ./
4848
with:
4949
test_query_file_path: './.github/workflows/workflow_scripts/google-example.iql'
50-
expected_results_str: '[{"name":"stackql-demo-001"}]'
50+
expected_results_str: '[{"name":"stackql-test-001"}]'
5151
env:
5252
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
5353

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"name":"stackql-demo-001"}]
1+
[{"name":"stackql-test-001"}]

.github/workflows/workflow_scripts/google-example-inline-jsonnet.iql

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ local zone = std.extVar("GOOGLE_ZONE");
88
>>>
99
SELECT name
1010
FROM google.compute.instances
11-
WHERE project = '{{ .project }}' and zone = '{{ .zone }}' and name = 'stackql-demo-001';
11+
WHERE project = '{{ .project }}' and zone = '{{ .zone }}' and name = 'stackql-test-001';
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
SELECT name
22
FROM google.compute.instances
3-
WHERE project = 'stackql-demo' AND zone = 'australia-southeast1-a' AND name = 'stackql-demo-001';
3+
WHERE project = 'stackql-integration-tests' AND zone = 'australia-southeast1-a' AND name = 'stackql-test-001';

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ runs:
3434
using: "composite"
3535
steps:
3636
- name: Setup StackQL
37-
uses: stackql/[email protected].1
37+
uses: stackql/[email protected].3
3838
with:
3939
use_wrapper: true
4040

4141
- name: Execute StackQL Command
4242
id: exec-query
43-
uses: stackql/[email protected].1
43+
uses: stackql/[email protected].3
4444
with:
4545
query: ${{ inputs.test_query }}
4646
query_file_path: ${{ inputs.test_query_file_path }}

0 commit comments

Comments
 (0)