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

Rebase Check command to newer version of upstream goose (3.20.0) #5

Draft
wants to merge 436 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
436 commits
Select commit Hold shift + click to select a range
6631aae
updating readme and create command for v3 (#265)
floydjones1 Aug 8, 2021
17a2045
Set minimum supported version to go1.16 (#267)
mfridman Aug 13, 2021
732e82d
Update github action go version: go1.17 (#268)
mfridman Aug 16, 2021
3ffdd78
Embed support: add 'base' filesystem to discover migrations. (#244)
xakep666 Aug 19, 2021
d15e25a
Update readme to clarify supoprted go version
mfridman Aug 21, 2021
e976a73
fix clickhouse goose table name (#270)
qonsth Aug 21, 2021
872d9e9
fixed a typo in the OpenDBWithDriver() description. (#253)
kaatinga Aug 21, 2021
0e770f8
Add goose logo (#274)
mfridman Sep 4, 2021
f24b19c
Update readme with mysql multiStatements
mfridman Oct 11, 2021
97eae09
Add CI workflows to generate GitHub Releases and binaries on new tag …
mfridman Oct 13, 2021
48f48dc
Add container-based database tests for postgres and mysql (#276)
mfridman Oct 13, 2021
9f88133
Update dependencies; go mod tidy and verify
mfridman Oct 17, 2021
8ed5f63
Add the ability to apply missing (out-of-order) migrations (#280)
mfridman Oct 24, 2021
6bef64a
Update readme
mfridman Oct 24, 2021
1f07599
Update tests and gitignore (#285)
mfridman Oct 28, 2021
4148551
option to use pgx instead pq (#283)
gohryt Nov 24, 2021
7bc1756
Fix install command (#289)
Nov 24, 2021
af4a7f1
Add new (go1.17) build tags
mfridman Nov 25, 2021
665e3f3
Update readme and help command
mfridman Nov 25, 2021
1f7c019
Fix spacing
mfridman Nov 25, 2021
cc7f022
Replace mattn/go-sqlite3 with modernc.org/sqlite (CGo-free port of SQ…
mfridman Nov 26, 2021
e493182
Add build constraints for windows_arm64
mfridman Nov 26, 2021
38c3d58
Remove version row on down migrations outside txn (#296)
mfridman Dec 11, 2021
fd1ba04
Fix #216 added support for user with x509 enabled (#294)
arulrajnet Dec 12, 2021
c8aa123
Adds support to apply migrations without versioning (#291)
mfridman Dec 13, 2021
fc39794
Fix cannot build using build tag 'no_mysql' (#301)
smallming Jan 18, 2022
7fffa2d
readme: add password parameter when connect to PostgreSQL (#299)
Jan 18, 2022
e310f14
Add script to simplify macOS and linux install
mfridman Jan 29, 2022
f263417
readme: update installation indtructions
mfridman Jan 30, 2022
050c5e0
Update Go dependencies (#305)
mfridman Feb 4, 2022
b2a7e51
Add dependabot.yml (#306)
mfridman Feb 4, 2022
5f1f43c
Add dependabot ignore and update deps
mfridman Feb 12, 2022
b51d501
Add goose init command (#313)
mfridman Feb 18, 2022
630ef77
DownTo returns error if no matching migration file is found (#314)
briskt Feb 21, 2022
699287d
test: use `T.TempDir` to create temporary test directory (#315)
Juneezee Feb 25, 2022
5cb7ab6
Update README.md (#316)
fwielstra Feb 25, 2022
205faf5
Update CI to support go1.18 (#320)
mfridman Mar 17, 2022
0995b69
Bump modernc.org/sqlite from 1.14.8 to 1.15.4 (#326)
dependabot[bot] Apr 3, 2022
fbd200b
Fix misspelling in README.md (#323)
nsa-yoda Apr 3, 2022
8f53c35
Bump modernc.org/sqlite from 1.15.4 to 1.16.0 (#327)
dependabot[bot] Apr 14, 2022
b7c7a8d
Add gofmt formatting check to CI
mfridman Apr 15, 2022
6fc031a
Update ory/dockertest dependency (#330)
nadinelyab Apr 21, 2022
c05d337
Fixing clickhouse dialect placeholders (#333)
kafkiansky Apr 24, 2022
1311a0e
Add GOOSE_MIGRATION_DIR env variable (#337)
mfridman Apr 28, 2022
33487e4
Make NumericComponent errors more understandable (#334)
zealws Apr 29, 2022
b44efc3
Bump modernc.org/sqlite from 1.16.0 to 1.17.0 (#342)
dependabot[bot] Apr 30, 2022
4a10c2c
Remove matryer/is replace with simple internal lib (#356)
mfridman May 19, 2022
b1fc11a
Cleanup go modules
mfridman May 20, 2022
8d29bfc
Bump goreleaser/goreleaser-action from 2 to 3 (#357)
dependabot[bot] May 28, 2022
e7c5f69
Periodic output for long running migrations (#364)
nikitacrit Jun 15, 2022
dc83fe7
Update go dependencies
mfridman Jun 18, 2022
e8d93a0
clickhouse: Fixed get db version query (#240)
chapsuk Jun 18, 2022
1b45f37
e2e: add clickhouse and update v2 (#369)
mfridman Jun 20, 2022
4ec294d
clickhouse: remove hard-coded verb in dialect (#370)
mfridman Jun 21, 2022
bfd4286
Fix example index out of range error (#368)
slavick Jun 21, 2022
d04c088
e2e: move db container helpers to internal/testdb (#371)
mfridman Jun 21, 2022
f3d569f
Remove pkg/errors in favor of std lib (#373)
mfridman Jun 23, 2022
4826c03
Bump github.com/ClickHouse/clickhouse-go/v2 from 2.1.0 to 2.2.0 (#377)
dependabot[bot] Jul 9, 2022
45a192f
Add a credit notation for Gopher image in README (#375)
ryokotmng Jul 9, 2022
7792d04
Update GH workflow to include go version 1.19.0-rc.1 (#381)
mfridman Jul 9, 2022
bc72e78
postgres: switch from lib/pq to jackc/pgx (#382)
Jul 10, 2022
496d7cd
parser: preserve empty lines in SQL statements (#372)
iktakahiro Jul 13, 2022
0a72970
logger: add nop logger (#384)
mfridman Jul 13, 2022
2278d75
Upgrade direct and indirect deps (#391)
mfridman Aug 13, 2022
8abd890
Exit with error 1 without required arguments (#399)
el4v Aug 29, 2022
b6c15b9
Bump modernc.org/sqlite from 1.18.1 to 1.19.1 (#406)
dependabot[bot] Oct 13, 2022
5a6c34e
Add NO_COLOR (-no-color) support (#409)
mfridman Oct 20, 2022
1c15215
Remove deprecated package ioutil and upgrade deps (#411)
mfridman Oct 20, 2022
f30eb6d
Update deprecated query in createVersionTableSQL for new ClickHouse v…
Systemnick Oct 21, 2022
28113a2
Print duration of execution time of each migration (#410)
mfridman Oct 21, 2022
9823e00
Upgrade golang.org/x/text (#421)
brandon-leapyear Dec 2, 2022
73e53f9
Changing Sprintf to Sprint if there is no formatting (#417)
sashamelentyev Dec 2, 2022
b582641
Adds vertica driver support (#393)
bobpace Dec 5, 2022
1939e61
build: upgrade dependencies (#442)
mfridman Jan 18, 2023
81d44b3
refactor: Use math.MaxInt64 const as MaxVersion instead of hardcode n…
sashamelentyev Jan 18, 2023
436452d
ci: bump goreleaser/goreleaser-action from 3 to 4 (#430)
dependabot[bot] Jan 18, 2023
db8fedd
feat: add goose env command (#443)
mfridman Jan 19, 2023
2636c84
refactor: move sql parser into internal package (#444)
mfridman Jan 19, 2023
74eaeab
test: add more parser tests (#445)
mfridman Jan 20, 2023
635add3
docs: clarify annotation requirement and ordering (#452)
mfridman Jan 24, 2023
2032773
feat: add support for `*sql.DB`-registered Go migration (#450)
mfridman Jan 25, 2023
bf26560
fix: parser handling comments and empty lines (#446)
mfridman Jan 26, 2023
32ad603
Add golangci-lint and fix errors (#456)
mfridman Jan 27, 2023
ad90652
clickhouse: set mutations_sync 2 for delete version (#454)
chapsuk Jan 27, 2023
c2f9bcb
ci: drop 1.17 tests and add 1.20-rc.3 (#455)
mfridman Jan 28, 2023
b4af752
fix test race condition and remove verbose global in parser (#457)
mfridman Jan 28, 2023
2a6d7c0
build: bump minimum Go version to 1.18 (update CI) (#458)
mfridman Feb 2, 2023
60610d3
remove `tls` override from mysql dsn normalizing (#468)
jonas-jonas Feb 22, 2023
8c25e3b
feat: `goose validate` command (#449)
mfridman Feb 25, 2023
0af59c1
build: upgrade dependencies (#471)
mfridman Feb 25, 2023
b62288d
fix: exclude Go test files from migrations (#474)
ipoerner Mar 4, 2023
7e6e512
build: update CI go version references and upgrade deps (#473)
mfridman Mar 10, 2023
935e883
build: golangci-lint add skip-pkg-cache: true
mfridman Mar 10, 2023
99204d2
build: upgrade to github.com/jackc/pgx/v5 (#475)
dahu33 Mar 11, 2023
33106fc
chore: update annotation comments (#478)
mfridman Mar 13, 2023
c462979
refactor: create a generic store and stub out dialect queries (#477)
mfridman Mar 14, 2023
15ef2bc
chore: fix comment typos (#480)
deining Mar 15, 2023
e2ecb28
fix: clickhouse tests
mfridman Mar 15, 2023
baaec13
refactor: dialectquery (#482)
mfridman Mar 21, 2023
8574431
refactor: remove deprecated ioutil
mfridman Mar 21, 2023
49c55f0
feat: add support for azuresql dialect (#487)
sblackstone Mar 29, 2023
3e0905a
build(deps): bump github.com/opencontainers/runc from 1.1.4 to 1.1.5 …
dependabot[bot] Mar 30, 2023
86f779a
build: add Linux ARM64 arch support (#499)
jesusprubio Apr 16, 2023
0bc0034
build: upgrade deps and update workflows (#500)
mfridman Apr 16, 2023
0d1296b
feat(mssql): update driver to microsoft/go-mssqldb (#501)
mfridman Apr 16, 2023
4eee07f
build(deps): bump github.com/ory/dockertest/v3 from 3.9.1 to 3.10.0 (…
dependabot[bot] Apr 23, 2023
ba6e5fb
Add 'sqlserver' to dialects as an alias of mssql (#510)
ffaen May 2, 2023
7ce30b7
docs: add goose validate command to help and readme (#512)
mfridman May 5, 2023
8759239
fix: use global table name in queries (#515)
mfridman May 8, 2023
a46581b
build: upgrade deps (#516)
mfridman May 8, 2023
3717a9e
build: update actions/setup-go in goreleaser
mfridman May 8, 2023
3d345c4
fix: up and up -allow-missing behaviour (#524)
mfridman May 21, 2023
b46a978
build(deps): bump github.com/microsoft/go-mssqldb from 0.21.0 to 1.0.…
dependabot[bot] May 28, 2023
f08d203
build(deps): bump github.com/ClickHouse/clickhouse-go/v2 from 2.9.1 t…
dependabot[bot] May 28, 2023
d88978d
Fix current version in empty up state log (#533)
mfridman Jun 10, 2023
949787e
build(deps): upgrade all dependencies (#537)
mfridman Jun 16, 2023
7dcddde
feat: expose new functions for setting context (#517)
ori-shalom Jun 16, 2023
d21bf4f
chore: add changelog and update goose version (#544)
mfridman Jun 29, 2023
7d9fbaf
fix: return error when no migration files are found or dir is not a d…
craigpangea Jun 29, 2023
e18fac6
feat: add context-aware Go migrations (#534)
ori-shalom Jun 29, 2023
f476dd7
chore: update changelog
mfridman Jun 29, 2023
aedfab0
Release v3.12.0
mfridman Jun 29, 2023
26295ee
Release v3.13.0
mfridman Jun 29, 2023
4e04e08
Back to development
mfridman Jun 29, 2023
50e274a
Update goreleaser and add pre-built binary scripts (#550)
mfridman Jul 3, 2023
d34ca5c
Release v3.13.1
mfridman Jul 3, 2023
7c40565
fix: pre-built binary versions (#551)
mfridman Jul 4, 2023
dec87f0
build: upgrade deps (#554)
mfridman Jul 5, 2023
843a23d
test: add C-style comments test case to sqlparser test (#555)
mfridman Jul 5, 2023
06ff963
fix: unterminated up statement is ignored (#558)
mfridman Jul 7, 2023
9ba828d
refactor: trim down the logger interface (#559)
craigpangea Jul 7, 2023
8bdf173
Release v3.13.2 (#560)
mfridman Jul 7, 2023
5864133
fix: bash script to generate release notes
mfridman Jul 7, 2023
c9a67f6
fix: changelog reflect released changes; fix build moving forward
mfridman Jul 7, 2023
928f577
refactor: filter registered Go migrations by fs dirpath (#553)
rafalneves Jul 11, 2023
c6706ad
fix: add clearer success message when migrations are applied (#562)
Blquinn Jul 11, 2023
6fa65a1
build(deps): bump modernc.org/sqlite from 1.23.1 to 1.24.0 (#566)
dependabot[bot] Jul 19, 2023
ba964eb
docs: update unreleased CHANGELOG.md
mfridman Jul 19, 2023
5c84746
fix: AddMigrationNoTxContext invalid filename (#572)
mfridman Jul 22, 2023
0774ee6
build: use `groups` in dependabot config (#573)
mfridman Jul 22, 2023
9c73699
refactor: use debug BuildInfo for version if available
mfridman Jul 26, 2023
da5f2bf
Release v3.14.0
mfridman Jul 26, 2023
906a5b3
build(deps): bump the gomod group with 2 updates (#574)
dependabot[bot] Jul 26, 2023
d67f26c
fix(sqlparser): avoid trimming on last semicolon (#581)
mfridman Aug 11, 2023
75ba389
docs: update the go-migrations examples (#583)
fcce Aug 11, 2023
eb1d0c5
build(deps): bump the gomod group with 3 updates (#579)
dependabot[bot] Aug 11, 2023
6d11e58
chore: bump ci test matrix and go.mod version to go1.19 (#584)
mfridman Aug 11, 2023
6b47f70
fix: use binary version when linker flag is set
mfridman Aug 13, 2023
a20c666
chore: cleanup GH goreleaser file
mfridman Aug 13, 2023
6c1d92b
Release v3.15.0
mfridman Aug 13, 2023
958c950
test: improve goose cli tests (#589)
mfridman Aug 27, 2023
7011525
fix: collect go migrations (#588)
mfridman Aug 27, 2023
b64f5c4
build(deps): bump actions/checkout from 3 to 4 (#595)
dependabot[bot] Sep 14, 2023
53f25a7
build(deps): bump the gomod group with 1 update (#593)
dependabot[bot] Sep 14, 2023
473a70d
build: bump deps and GH actions (#602)
mfridman Oct 5, 2023
ccfb885
feat(experimental): goose provider with unimplemented methods (#596)
mfridman Oct 7, 2023
c590380
feat(experimental): add internal migrate package and SessionLocker in…
mfridman Oct 9, 2023
e696fa3
feat(experimental): move Provider to an internal package
mfridman Oct 10, 2023
091166a
Release v3.15.1
mfridman Oct 10, 2023
3482c2f
fix(test): sql driver import
mfridman Oct 10, 2023
fe8fe97
chore(readme): update install code fences (#614)
greyscaled Oct 13, 2023
68853f9
feat(experimental): add collect migrations logic and new Provider opt…
mfridman Oct 14, 2023
58f8534
feat(experimental): shuffle packages & add explicit provider Go func …
mfridman Oct 15, 2023
257b523
feat(experimental): add migration logic with tests (#617)
mfridman Oct 17, 2023
0c243fb
feat(database): Add YDB support (#592)
gingersamurai Oct 25, 2023
3b801a6
build: bump deps (#622)
mfridman Oct 25, 2023
a9da750
feat(experimental): Shuffle packages and tidy up (#619)
mfridman Oct 25, 2023
4ec43df
feat(experimental): add package database with Store interface (#623)
mfridman Oct 27, 2023
d59dd9f
feat(experimental): keep Store internal and add Tablename method (#624)
mfridman Oct 28, 2023
20a99fa
feat: Expose setter for global Go migration registry (#625)
mfridman Oct 28, 2023
497acb4
feat(experimental): prefactor provider and cleanup (#626)
mfridman Oct 30, 2023
8e088eb
fix: wrap error in DownContext (#629)
stephenafamo Oct 31, 2023
432a6ac
build: bump deps (#633)
mfridman Nov 4, 2023
6d0de39
feat: Add NewGoMigration constructor (#631)
mfridman Nov 4, 2023
8503d4e
fix(sqlserver): Query to ensure DB Version (#601)
rkgarcia Nov 4, 2023
04e12b8
feat: Add goose provider (#635)
mfridman Nov 9, 2023
3fade11
fix: Set explicit transaction mode on Go register
mfridman Nov 9, 2023
6692639
Create an alias for Dialect from database.Dialect (#636)
mfridman Nov 10, 2023
8ea0968
Improve lock tests and bump go deps (#638)
mfridman Nov 11, 2023
91e20b2
test: SQLite3 shared cache (#639)
mfridman Nov 11, 2023
c5e0d3c
Add source path to Go migrations with file on disk
mfridman Nov 11, 2023
9e6ef20
refactor: add TableExists assertion support and improve docs (#641)
mfridman Nov 12, 2023
1e40462
feat: Gracefully recover Go migrations that panic (#643)
mfridman Nov 12, 2023
517e343
Release v3.16.0
mfridman Nov 12, 2023
bb5a1e5
Release v3.16.0
mfridman Nov 12, 2023
f278fc1
Add README.md report card badge
mfridman Nov 12, 2023
fd6da03
docs: fix badge in README.md
mfridman Nov 12, 2023
0363e19
feat: Provider option to disable reading from global registry (#645)
mfridman Nov 13, 2023
c134d85
Standardise the license (#648)
mmmguitar Nov 22, 2023
1a1297c
build(deps): bump actions/setup-go from 4 to 5 (#656)
dependabot[bot] Dec 9, 2023
e0a62dc
build(deps): bump the gomod group with 1 update (#651)
dependabot[bot] Dec 9, 2023
31709a3
fix: Improve provider apply() errors (#660)
mfridman Dec 10, 2023
1c856e6
docs: Update changelog
mfridman Dec 10, 2023
a52c60d
fix: add context-aware functions to goose validate (#662)
mfridman Dec 12, 2023
90a4f4f
feat(cli): Add timeout flag (#627)
smantic Dec 15, 2023
6e43ae9
fix: redshift driver issue (#567)
vpetrosian Dec 15, 2023
c541882
refactor: Use UTC for timestamps when creating a migration (#242)
linux2647 Dec 15, 2023
274b8fb
build: bump deps (fix vertica ld: warning) (#667)
mfridman Dec 15, 2023
b114337
feat: add optional logging in Provider with verbose option (#668)
mfridman Dec 16, 2023
8d6618d
build: remove replace directive (#669)
mfridman Dec 16, 2023
87c45a3
Release v3.17.0
mfridman Dec 16, 2023
14c93ad
feat: add native Turso support (#658)
avinassh Dec 16, 2023
52fd411
chore(deps): Update libsql-client-go to new tursodatabase organizatio…
webstradev Dec 17, 2023
ed3f113
dev: add beta command to CLI; fix build constraints (#672)
mfridman Dec 17, 2023
44aea13
build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0 (#676)
dependabot[bot] Dec 19, 2023
120e6a3
feat: environment variables interpolation (#604)
smoke Dec 23, 2023
f3ac856
build(deps): bump the gomod group with 1 update (#677)
dependabot[bot] Dec 24, 2023
1b23a2d
docs: update README.md
mfridman Dec 24, 2023
2b41513
build: bump Go deps and add 1.22.0-rc.2 to CI matrix (#686)
mfridman Jan 26, 2024
d9fa725
fix: `ListMigrations` query for YDB (#685)
asmyasnikov Jan 29, 2024
6f5c152
Release v3.18.0
mfridman Jan 31, 2024
81fb552
build(deps): bump the gomod group with 1 update (#690)
dependabot[bot] Feb 1, 2024
8712ba6
fix selecting dialect (#692)
jbking Feb 3, 2024
d4a4dc3
docs: Improve OpenDBWithDriver comments
mfridman Feb 3, 2024
73ee899
Add GOOSE_MIGRATION_DIR environment variable to the usage instruction…
JosefuMealsom Feb 12, 2024
fb7ca2d
feat: add duckdb support (#696)
dpeckett Feb 15, 2024
3941a35
build(deps): bump golangci/golangci-lint-action from 3 to 4 (#698)
dependabot[bot] Feb 15, 2024
76946cc
ci: add stable go1.22 to matrix
mfridman Feb 15, 2024
48100ea
feat: Make goose annotations case-insensitive (#704)
obalunenko Mar 4, 2024
5efbe40
Release v3.19.0
mfridman Mar 11, 2024
1e21426
Add build tags for duckdb
mfridman Mar 11, 2024
aa82ba8
build: improve CI workflows (#715)
mfridman Mar 11, 2024
d90fb4f
build: install goreleaser
mfridman Mar 11, 2024
51d6b11
build: use official goreleaser/goreleaser-action
mfridman Mar 11, 2024
73c0c4c
build: goreleaser checks in CI
mfridman Mar 11, 2024
5765bc0
build: goreleaser checks in CI
mfridman Mar 11, 2024
9024628
Release v3.19.1
mfridman Mar 11, 2024
f13ed73
Revert "feat: add duckdb support (#696)" (#717)
mfridman Mar 13, 2024
c18dd45
build: bumps deps (#719)
mfridman Mar 13, 2024
79be9af
Release v3.19.2
mfridman Mar 13, 2024
73e2f88
build(deps): bump google.golang.org/protobuf from 1.31.0 to 1.33.0 (#…
dependabot[bot] Mar 13, 2024
b2c483a
Update integration test suite (formally e2e) (#713)
mfridman Mar 14, 2024
e2c1ac0
fix: makefile test-postgres
mfridman Mar 15, 2024
234a9d5
docs: cleanup changelog
mfridman Mar 15, 2024
42eab2b
build: bump internal/testing go deps (#732)
mfridman Mar 26, 2024
f4f1a24
Expand the Store interface and add GetLatestVersion method (#743)
mfridman Apr 12, 2024
b164611
build: bump deps (#744)
mfridman Apr 12, 2024
5f21833
build(deps): bump github.com/docker/docker from 26.0.1+incompatible t…
dependabot[bot] Apr 19, 2024
7e96a22
build(deps): bump golang.org/x/net from 0.20.0 to 0.23.0 (#749)
dependabot[bot] Apr 20, 2024
1ad801c
feat: Add provider HasPending method (#751)
mfridman Apr 21, 2024
d0641b5
chore: upgrade container images and bump integration test deps (#753)
mfridman Apr 21, 2024
31de74d
Release v3.20.0
mfridman Apr 22, 2024
f722b0d
Revert "Merge pull request #4 from Serjick/version_format_date"
burkostya May 14, 2024
7a1367a
Revert "Merge pull request #3 from Serjick/check_command"
burkostya May 14, 2024
0d71c5c
Revert "Merge pull request #2 from elemc/master"
burkostya May 14, 2024
781143a
Revert "Merge pull request #1 from elemc/master"
burkostya May 14, 2024
03ec47b
Merge commit '31de74d3268ad47629905899285c44bbe9c9e35b' into check-re…
burkostya May 14, 2024
3bf3db8
feat(cmd/goose): rebase temporary removed feature for partial configu…
burkostya May 14, 2024
4744350
feat: rebase temporary removed feature - add check command to identif…
burkostya May 14, 2024
16ff82d
fix(config): do not fail if file config is not present
burkostya May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
assignees:
- "mfridman"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "saturday"
groups:
gomod:
patterns:
- "*"
assignees:
- "mfridman"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
53 changes: 53 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Goose CI

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Run unit tests
timeout-minutes: 10

strategy:
matrix:
go-version: ["1.20", "1.21", "1.22"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Check Go code formatting
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
gofmt -s -l .
echo "Please format Go code by running: go fmt ./..."
exit 1
fi
- name: Run tests
run: |
mkdir -p bin
go vet ./...
go build ./...
make test-packages
- name: Install GoReleaser
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.go-version == '1.22'
uses: goreleaser/goreleaser-action@v5
with:
install-only: true
- name: Gorelease dry-run
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.go-version == '1.22'
run: |
goreleaser release --skip=publish --snapshot --fail-fast --clean
28 changes: 28 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Goose integration tests

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Run integration tests
timeout-minutes: 10
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Run full integration tests
run: |
make test-integration
49 changes: 49 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: golangci

on:
push:
branches:
- master
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "stable"
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
github-token: ${{ secrets.GITHUB_TOKEN }}
args: --timeout=2m --verbose

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true

# Optional: if set to true then the all caching functionality will be complete disabled,
# takes precedence over all other caching options.
# skip-cache: true

# Optional: if set to true then the action don't cache or restore ~/go/pkg.
# skip-pkg-cache: true

# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
# skip-build-cache: true
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Generate release notes
continue-on-error: true
run: ./scripts/release-notes.sh ${{github.ref_name}} > ${{runner.temp}}/release_notes.txt
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean --release-notes=${{runner.temp}}/release_notes.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 15 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
.idea
.vscode
.DS_Store
cmd/goose/goose*
*.swp
*.test

# Files output by tests
/bin

# Local testing
.envrc
*.FAIL

dist/
release_notes.txt

go.work
go.work.sum
35 changes: 35 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
#
# See https://goreleaser.com/customization/ for more information.
project_name: goose

before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
binary: goose
main: ./cmd/goose
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
# The v prefix is stripped by goreleaser, so we need to add it back.
# https://goreleaser.com/customization/templates/#fnref:version-prefix
- "-s -w -X main.version=v{{ .Version }}"

archives:
- format: binary
name_template: >-
{{ .ProjectName }}_{{- tolower .Os }}_{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github-native
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

Loading
Loading