diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index ff4c03e52a..0000000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,35 +0,0 @@ -on: - push: - branches: [master] - tags: ['*'] - pull_request: - types: [opened, synchronize, reopened] -name: Test -jobs: - test: - strategy: - matrix: - go-version: [1.13.x, 1.14.x] - runs-on: ubuntu-latest - services: - mysql: - image: mysql:5.7 - env: - MYSQL_ALLOW_EMPTY_PASSWORD: yes - MYSQL_DATABASE: gotrue_test - ports: - - 3306:3306 - options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 - steps: - - name: Install Go - uses: actions/setup-go@v2-beta - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - - name: Install dependencies - run: make deps - - name: Apply database migrations - run: make migrate_test - - name: Lint and test - run: make all \ No newline at end of file diff --git a/Makefile b/Makefile index 9ec5c1ac80..1756822daf 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CHECK_FILES?=$$(go list ./... | grep -v /vendor/) help: ## Show this help. @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) -all: lint vet test build ## Run the tests and build the binary. +all: lint vet build ## Run the tests and build the binary. build: ## Build the binary. go build -ldflags "-X github.com/netlify/gotrue/cmd.Version=`git rev-parse HEAD`"