feat: date & timestamp type #12
Workflow file for this run
This file contains 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: SDK | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
go-sdk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '^1.18' | |
- name: OpenMLDB cluster | |
run: | | |
docker compose -f docker-compose.yml up -d | |
- name: verbose services | |
# ensure all services is up | |
run: | | |
sleep 60 | |
docker compose --file docker-compose.yml ps -a | |
- name: init test database | |
run: | | |
docker compose -f docker-compose.yml exec openmldb-ns1 /opt/openmldb/bin/openmldb --zk_cluster=openmldb-zk:2181 --zk_root_path=/openmldb --role=sql_client --cmd 'CREATE DATABASE test_db' | |
docker compose -f docker-compose.yml exec openmldb-ns1 /opt/openmldb/bin/openmldb --zk_cluster=openmldb-zk:2181 --zk_root_path=/openmldb --role=sql_client --cmd 'SET GLOBAL execute_mode = "online"' | |
- name: go test | |
run: go test ./... -race -covermode=atomic -coverprofile=coverage.out | |
- name: Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
files: coverage.out | |
fail_ci_if_error: true | |
verbose: true | |
token: ${{ secrets.CODECOV_TOKEN }} |