Skip to content

Commit

Permalink
Upgrade to latest gozix version
Browse files Browse the repository at this point in the history
New major release
New major version
  • Loading branch information
snovichkov committed Feb 9, 2023
1 parent f03503b commit cb734de
Show file tree
Hide file tree
Showing 12 changed files with 874 additions and 564 deletions.
15 changes: 15 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
coverage:
range: 70..98
round: down
precision: 2
status:
project:
default:
enabled: yes
target: 89
if_not_found: success
if_ci_failed: error
patch:
default:
enabled: yes
target: 70
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Unit Tests

on:
push:
branches: [ "master" ]

pull_request:
branches: [ "master" ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
go-version:
- 1.18
- 1.19

steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

- name: Run Tests
run: bash .scripts/test.sh

- name: Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
15 changes: 15 additions & 0 deletions .scripts/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -e

if [[ -f coverage.txt ]]; then
rm coverage.txt
fi

for d in $(go list ./... | grep -v ditest); do
go test -coverprofile=profile.out -coverpkg=./... -covermode=atomic "$d"
if [[ -f profile.out ]]; then
cat profile.out >>coverage.txt
rm profile.out
fi
done
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,43 @@
# GoZix SQL Migrate

[documentation-img]: https://img.shields.io/badge/godoc-reference-blue.svg?color=24B898&style=for-the-badge&logo=go&logoColor=ffffff
[documentation-url]: https://pkg.go.dev/github.com/gozix/sql-migrate/v3
[license-img]: https://img.shields.io/github/license/gozix/sql-migrate.svg?style=for-the-badge
[license-url]: https://github.com/gozix/sql-migrate/blob/master/LICENSE
[release-img]: https://img.shields.io/github/tag/gozix/sql-migrate.svg?label=release&color=24B898&logo=github&style=for-the-badge
[release-url]: https://github.com/gozix/sql-migrate/releases/latest
[build-status-img]: https://img.shields.io/github/actions/workflow/status/gozix/sql-migrate/go.yml?logo=github&style=for-the-badge
[build-status-url]: https://github.com/gozix/sql-migrate/actions
[go-report-img]: https://img.shields.io/badge/go%20report-A%2B-green?style=for-the-badge
[go-report-url]: https://goreportcard.com/report/github.com/gozix/sql-migrate
[code-coverage-img]: https://img.shields.io/codecov/c/github/gozix/sql-migrate.svg?style=for-the-badge&logo=codecov
[code-coverage-url]: https://codecov.io/gh/gozix/sql-migrate

[![License][license-img]][license-url]
[![Documentation][documentation-img]][documentation-url]

[![Release][release-img]][release-url]
[![Build Status][build-status-img]][build-status-url]
[![Go Report Card][go-report-img]][go-report-url]
[![Code Coverage][code-coverage-img]][code-coverage-url]

The bundle provide a SQL migrate integration to GoZix application.

## Installation

```shell
go get github.com/gozix/sql-migrate/v3
```

## Dependencies

* [sql](https://github.com/gozix/sql)
* [sql](https://github.com/gozix/sql-migrate)
* [zap](https://github.com/gozix/zap)

## Documentation

You can find documentation on [pkg.go.dev][documentation-url] and read source code if needed.

## Questions

If you have any questions, feel free to create an issue.
2 changes: 2 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Package migrate provide sql-migrate bundle.
package migrate
55 changes: 44 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,48 @@
module github.com/gozix/sql-migrate/v2
module github.com/gozix/sql-migrate/v3

go 1.12
go 1.18

require (
github.com/go-sql-driver/mysql v1.5.0 // indirect
github.com/gozix/glue/v2 v2.3.0
github.com/gozix/sql/v2 v2.0.0
github.com/gozix/zap/v2 v2.0.2
github.com/lib/pq v1.8.0 // indirect
github.com/rubenv/sql-migrate v0.0.0-20200616145509-8d140a17f351
github.com/sarulabs/di/v2 v2.4.0
github.com/spf13/cobra v1.0.0
go.uber.org/zap v1.16.0
github.com/gozix/di v0.0.0-20221102142358-2b0637467aad
github.com/gozix/glue/v3 v3.0.0-20221022185837-d7643bfaa0ad
github.com/gozix/sql/v3 v3.0.0-20221024105010-d7166b76df1a
github.com/gozix/zap/v3 v3.0.0-20221024145120-bdc350691f3c
github.com/iqoption/nap v1.1.0
github.com/rubenv/sql-migrate v1.2.0
github.com/spf13/cobra v1.6.1
go.uber.org/zap v1.24.0
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/gozix/viper/v3 v3.0.0-20221022084259-4f9fc18b79a7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.38.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.14.0 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/sys v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit cb734de

Please sign in to comment.