Skip to content

updated tests #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ jobs:

steps:
- uses: actions/[email protected]
- name: Use Node.js 16
uses: actions/setup-node@v4.0.2
- name: Setup Node.js environment
uses: actions/setup-node@v4.1.0
with:
node-version: 16.x
node-version: 18
- run: npm ci
- run: npm test

- run: npm test
6 changes: 3 additions & 3 deletions .github/workflows/stackql-assert-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Pull required providers
#
- name: pull required providers
uses: stackql/[email protected].1
uses: stackql/[email protected].3
with:
is_command: true
query: "REGISTRY PULL google; REGISTRY PULL github"
Expand All @@ -35,7 +35,7 @@ jobs:
test_query: |
SELECT name
FROM google.compute.instances
WHERE project = 'stackql-demo' AND zone = 'australia-southeast1-a' AND name = 'stackql-demo-001';
WHERE project = 'stackql-integration-tests' AND zone = 'australia-southeast1-a' and name = 'stackql-test-001';
expected_rows: 1
env:
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
Expand All @@ -47,7 +47,7 @@ jobs:
uses: ./
with:
test_query_file_path: './.github/workflows/workflow_scripts/google-example.iql'
expected_results_str: '[{"name":"stackql-demo-001"}]'
expected_results_str: '[{"name":"stackql-test-001"}]'
env:
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name":"stackql-demo-001"}]
[{"name":"stackql-test-001"}]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ local zone = std.extVar("GOOGLE_ZONE");
>>>
SELECT name
FROM google.compute.instances
WHERE project = '{{ .project }}' and zone = '{{ .zone }}' and name = 'stackql-demo-001';
WHERE project = '{{ .project }}' and zone = '{{ .zone }}' and name = 'stackql-test-001';
2 changes: 1 addition & 1 deletion .github/workflows/workflow_scripts/google-example.iql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
SELECT name
FROM google.compute.instances
WHERE project = 'stackql-demo' AND zone = 'australia-southeast1-a' AND name = 'stackql-demo-001';
WHERE project = 'stackql-integration-tests' AND zone = 'australia-southeast1-a' AND name = 'stackql-test-001';
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ runs:
using: "composite"
steps:
- name: Setup StackQL
uses: stackql/[email protected].1
uses: stackql/[email protected].3
with:
use_wrapper: true

- name: Execute StackQL Command
id: exec-query
uses: stackql/[email protected].1
uses: stackql/[email protected].3
with:
query: ${{ inputs.test_query }}
query_file_path: ${{ inputs.test_query_file_path }}
Expand Down