Skip to content

Commit ae26630

Browse files
committed
Chore: Add workflow to trigger on SQLMesh being updated upstream
1 parent 8dc4f34 commit ae26630

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: On SQLMesh Commit
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: ["commit"]
7+
8+
jobs:
9+
tests:
10+
name: Run Tests
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
permissions:
14+
contents: "read"
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref_name }}-tests
17+
cancel-in-progress: true
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Setup Base
22+
uses: ./.github/actions/setup-base
23+
- name: Checkout upstream SQLMesh
24+
uses: actions/checkout@v4
25+
with:
26+
repository: TobikoData/sqlmesh
27+
ref: ${{ github.event.client_payload.commit_sha }}
28+
path: _sqlmesh_upstream
29+
- name: Install upstream SQLMesh into local env
30+
run: |
31+
cd _sqlmesh_upstream
32+
pip install -e .
33+
- name: Run Unit Tests
34+
run: make test
35+
- name: Run Integration Tests
36+
run: make integration-test

0 commit comments

Comments
 (0)