test: add tidb docker compose #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Set up TiDB | |
uses: hoverkraft-tech/[email protected] | |
with: | |
compose-file: docker/tidb/docker-compose.yaml | |
services: | | |
tidb | |
tiflash | |
- name: Install dependencies | |
run: make install_dev | |
- name: Run Lint | |
run: make lint | |
- name: Run Format | |
run: make format | |
- name: Run Test | |
run: make test | |