Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract cmd package #319

Merged
merged 1 commit into from Oct 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 0 additions & 29 deletions .github/workflows/test.yml
Expand Up @@ -24,35 +24,6 @@ jobs:
uses: actions/checkout@v2
- run: go test -race ./...

cli:
name: CLI
env:
SQLITE3_DATABASE: cli-test.db
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.19]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- run: go install ./cmd/rel
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
repository: Fs02/go-todo-backend
path: project
- name: Test CLI
working-directory: project
run: |
rel -v
rel migrate
rel rollback
coverage:
name: Coverage
env:
Expand Down
58 changes: 1 addition & 57 deletions .goreleaser.yml
@@ -1,65 +1,9 @@
before:
hooks:
- go mod download
- go generate ./...
builds:
- main: ./cmd/rel/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
- skip: true
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://go-rel.github.io
description: Modern Database Access Layer for Golang
maintainer: Muhammad Surya Asriadie <surya.asriadie@gmail.com>
license: MIT
vendor: REL
formats:
- apk
- deb
- rpm
dependencies:
- golang
brews:
- tap:
owner: go-rel
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: REL
homepage: "https://go-rel.github.io/"
description: "Database migration using REL"
license: "MIT"
folder: Formula
dependencies:
- name: golang
type: optional
191 changes: 0 additions & 191 deletions cmd/rel/internal/migrate.go

This file was deleted.