diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b83994af..4780976f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -31,18 +31,17 @@ jobs: #ref: "refs/pull/${{ github.event.number }}/merge" # THIS IS INSECURE - name: Setup Golang with cache - uses: magnetikonline/action-golang-cache@v4 + uses: actions/setup-go@v4 with: go-version-file: go.mod + cache: false - name: TidyTree run: if [ "$(go mod tidy && git diff | wc -l)" -gt 0 ]; then exit 1; fi + - name: Format run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi - - name: Install dependencies - run: go get -v ./... - - name: Build run: go build -v ./... @@ -67,6 +66,7 @@ jobs: - name: Build Turso binary run: go build -o turso cmd/turso/main.go + - name: Integration tests checkout uses: actions/checkout@v3 with: @@ -74,6 +74,7 @@ jobs: ref: 'main' path: 'tests' token: ${{ secrets.ACCESS_TOKEN_TO_TESTS }} + - name: Integration Test run: cd tests && export TURSO_BINARY=../turso && go run cmd/tursotest/main.go -test.v -test.count=1 run integrationtests diff --git a/README.md b/README.md index f6f18bce..fce6e962 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,17 @@ # Turso CLI -[![goreleaser](https://github.com/tursodatabase/turso-cli/actions/workflows/goreleaser.yml/badge.svg)](https://github.com/tursodatabase/turso-cli/actions/workflows/goreleaser.yml) +[![Go](https://github.com/tursodatabase/turso-cli/actions/workflows/go.yml/badge.svg)](https://github.com/tursodatabase/turso-cli/actions/workflows/go.yml) [![License](https://img.shields.io/badge/license-MIT-blue)](https://github.com/tursodatabase/turso-cli/blob/main/LICENSE) This is the command line interface (CLI) to Turso. ## Documentation -There is [reference documentation](https://docs.turso.tech/reference/turso-cli) available. +There is [reference documentation](https://docs.turso.tech/reference/turso-cli) +available. -For a guided walkthrough, follow the [Turso CLI tutorial](https://docs.turso.tech/tutorials/get-started-turso-cli). +For a guided walkthrough, follow the +[Turso CLI tutorial](https://docs.turso.tech/tutorials/get-started-turso-cli). ## Installation @@ -21,7 +23,9 @@ For a guided walkthrough, follow the [Turso CLI tutorial](https://docs.turso.tec brew install chiselstrike/tap/turso ``` -Also remember to configure `homebrew` [shell completions](https://docs.brew.sh/Shell-Completion) if you haven't already done so. +Also remember to configure `homebrew` +[shell completions](https://docs.brew.sh/Shell-Completion) if you haven't +already done so. To upgrade an existing installation of the CLI, run: @@ -58,7 +62,8 @@ turso auth login ``` You are taken to a web page in your default browser to authenticate via GitHub. -After successfully authenticated, `turso auth login` receives an access token that is stored on your settings file. +After successfully authenticated, `turso auth login` receives an access token +that is stored on your settings file. ### Create database @@ -120,7 +125,8 @@ turso db destroy ## Settings -The `turso` program keeps settings in your local machine in the following base directory in `turso/settings.json` file: +The `turso` program keeps settings in your local machine in the following base +directory in `turso/settings.json` file: | OS | Config directory | | ----- | ----------------------------------------- |