Skip to content

Commit

Permalink
Extract cmd package (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fs02 committed Oct 15, 2022
1 parent 726f0b3 commit 001ce33
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 680 deletions.
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.

0 comments on commit 001ce33

Please sign in to comment.