Skip to content

CI

CI #779

Workflow file for this run

name: CI
on:
schedule:
- cron: '0 0 * * *'
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
fail-fast: false
matrix:
server-version:
- "nightly"
- "v1.2.790"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Unittest
run: |
make test
- name: Integration Test
env:
TEST_DATABEND_DSN: "databend://databend:databend@localhost:8000/default?sslmode=disable"
DATABEND_VERSION: ${{ matrix.server-version }}
run: |
make integration
# to avoid block pr of databend
test-compact:
strategy:
fail-fast: false
matrix:
driver-version:
- "v0.8.3"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Compat Test
env:
TEST_DATABEND_DSN: "databend://databend:databend@localhost:8000/default?sslmode=disable"
DATABEND_GO_VERSION: ${{ matrix.driver-version }}
run: |
make compat
notify:
if: failure()
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Notify Dev Team
uses: actions/github-script@v7
env:
WEBHOOK_URL: ${{ secrets.DEV_TEAM_WEBHOOK_URL }}
with:
script: |
const body = {
msg_type: 'text',
content: {
text: '⚠️ Databend GO Integration Tests Failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}',
}
}
const response = await fetch(process.env.WEBHOOK_URL, {
method: 'POST',
body: JSON.stringify(body),
headers: {'Content-Type': 'application/json'}
});
const result = await response.json();
console.log(result);