Skip to content

Commit 59d74fe

Browse files
authored
chore(ci): Trigger sql api test suites run on push to master and on releases (#8480)
1 parent 30cad43 commit 59d74fe

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/master.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,26 @@ jobs:
120120
password: ${{ secrets.DOCKERHUB_TOKEN }}
121121
repository: cubejs/cube
122122
readme-filepath: ./packages/cubejs-docker/README.md
123+
124+
trigger-test-suites:
125+
name: Trigger test suites run
126+
runs-on: ubuntu-20.04
127+
needs: [docker-image-dev]
128+
timeout-minutes: 60
129+
steps:
130+
- name: Checkout
131+
uses: actions/checkout@v4
132+
- name: Dispatch event
133+
uses: actions/github-script@v7
134+
with:
135+
github-token: ${{ secrets.GH_TRIGGER_TOKEN }}
136+
script: |
137+
await github.rest.actions.createWorkflowDispatch({
138+
owner: 'cubedevinc',
139+
repo: 'sql-api-test-suite',
140+
workflow_id: 'test_and_run_test_suites.yml',
141+
ref: 'master',
142+
inputs: {
143+
cube-image: 'cubejs/cube:dev'
144+
}
145+
})

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,3 +738,26 @@ jobs:
738738
asset_name: cubestored-${{ matrix.target }}.tar.gz
739739
tag: ${{ github.ref }}
740740
overwrite: true
741+
742+
trigger-test-suites:
743+
name: Trigger test suites run
744+
runs-on: ubuntu-20.04
745+
needs: [docker-default]
746+
timeout-minutes: 60
747+
steps:
748+
- name: Checkout
749+
uses: actions/checkout@v4
750+
- name: Dispatch event
751+
uses: actions/github-script@v7
752+
with:
753+
github-token: ${{ secrets.GH_TRIGGER_TOKEN }}
754+
script: |
755+
await github.rest.actions.createWorkflowDispatch({
756+
owner: 'cubedevinc',
757+
repo: 'sql-api-test-suite',
758+
workflow_id: 'test_and_run_test_suites.yml',
759+
ref: 'master',
760+
inputs: {
761+
cube-image: 'cubejs/cube:latest'
762+
}
763+
})

0 commit comments

Comments
 (0)