Skip to content

Commit

Permalink
chore(ci): Trigger sql api test suites run on push to master and on r…
Browse files Browse the repository at this point in the history
…eleases
  • Loading branch information
KSDaemon committed Jul 17, 2024
1 parent b5be13b commit 4655643
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,26 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: cubejs/cube
readme-filepath: ./packages/cubejs-docker/README.md

trigger-test-suites:
name: Trigger test suites run
runs-on: ubuntu-20.04
needs: [docker-image-dev]
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dispatch event
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_TRIGGER_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'cubedevinc',
repo: 'sql-api-test-suite',
workflow_id: 'test_and_run_test_suites.yml',
ref: 'master',
inputs: {
cube-image: 'cubejs/cube:dev'
}
})
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -738,3 +738,26 @@ jobs:
asset_name: cubestored-${{ matrix.target }}.tar.gz
tag: ${{ github.ref }}
overwrite: true

trigger-test-suites:
name: Trigger test suites run
runs-on: ubuntu-20.04
needs: [docker-default]
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Dispatch event
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_TRIGGER_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'cubedevinc',
repo: 'sql-api-test-suite',
workflow_id: 'test_and_run_test_suites.yml',
ref: 'master',
inputs: {
cube-image: 'cubejs/cube:latest'
}
})

0 comments on commit 4655643

Please sign in to comment.