Skip to content

Commit 001ce33

Browse files
authored
Extract cmd package (#319)
1 parent 726f0b3 commit 001ce33

File tree

8 files changed

+1
-680
lines changed

8 files changed

+1
-680
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,6 @@ jobs:
2424
uses: actions/checkout@v2
2525
- run: go test -race ./...
2626

27-
cli:
28-
name: CLI
29-
env:
30-
SQLITE3_DATABASE: cli-test.db
31-
strategy:
32-
matrix:
33-
os: [ubuntu-latest, macos-latest, windows-latest]
34-
go: [1.19]
35-
runs-on: ${{ matrix.os }}
36-
steps:
37-
- name: Set up Go 1.x
38-
uses: actions/setup-go@v3
39-
with:
40-
go-version: ${{ matrix.go }}
41-
- name: Check out code into the Go module directory
42-
uses: actions/checkout@v2
43-
- run: go install ./cmd/rel
44-
- name: Check out code into the Go module directory
45-
uses: actions/checkout@v2
46-
with:
47-
repository: Fs02/go-todo-backend
48-
path: project
49-
- name: Test CLI
50-
working-directory: project
51-
run: |
52-
rel -v
53-
rel migrate
54-
rel rollback
55-
5627
coverage:
5728
name: Coverage
5829
env:

.goreleaser.yml

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,9 @@
1-
before:
2-
hooks:
3-
- go mod download
4-
- go generate ./...
51
builds:
6-
- main: ./cmd/rel/main.go
7-
env:
8-
- CGO_ENABLED=0
9-
goos:
10-
- linux
11-
- darwin
12-
- windows
13-
goarch:
14-
- 386
15-
- amd64
16-
- arm
17-
- arm64
18-
archives:
19-
- replacements:
20-
darwin: Darwin
21-
linux: Linux
22-
windows: Windows
23-
386: i386
24-
amd64: x86_64
25-
format_overrides:
26-
- goos: windows
27-
format: zip
28-
checksum:
29-
name_template: 'checksums.txt'
30-
snapshot:
31-
name_template: "{{ .Tag }}-next"
2+
- skip: true
323
changelog:
334
sort: asc
345
filters:
356
exclude:
367
- '^docs:'
378
- '^test:'
389
- '^chore:'
39-
nfpms:
40-
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
41-
homepage: https://go-rel.github.io
42-
description: Modern Database Access Layer for Golang
43-
maintainer: Muhammad Surya Asriadie <[email protected]>
44-
license: MIT
45-
vendor: REL
46-
formats:
47-
- apk
48-
- deb
49-
- rpm
50-
dependencies:
51-
- golang
52-
brews:
53-
- tap:
54-
owner: go-rel
55-
name: homebrew-tap
56-
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
57-
commit_author:
58-
name: REL
59-
homepage: "https://go-rel.github.io/"
60-
description: "Database migration using REL"
61-
license: "MIT"
62-
folder: Formula
63-
dependencies:
64-
- name: golang
65-
type: optional

cmd/rel/internal/migrate.go

Lines changed: 0 additions & 191 deletions
This file was deleted.

0 commit comments

Comments
 (0)