Skip to content

Commit

Permalink
Fix CI cache problems (#686)
Browse files Browse the repository at this point in the history
* Skip cache since we're running in a self hosted environment

Also remove install dependencies step since it can generate
problems with setup-go.

* Use CI status badge instead of CD one
  • Loading branch information
athoscouto committed Oct 10, 2023
1 parent 51167a7 commit ad4bcb9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...

Expand All @@ -67,13 +66,15 @@ jobs:

- name: Build Turso binary
run: go build -o turso cmd/turso/main.go

- name: Integration tests checkout
uses: actions/checkout@v3
with:
repository: chiselstrike/tursotest
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

18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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:

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -120,7 +125,8 @@ turso db destroy <database name>

## 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 |
| ----- | ----------------------------------------- |
Expand Down

0 comments on commit ad4bcb9

Please sign in to comment.