Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: adlio/schema
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.1
Choose a base ref
...
head repository: adlio/schema
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.3.3
Choose a head ref
  • 12 commits
  • 6 files changed
  • 1 contributor

Commits on Jun 20, 2022

  1. Updates to ory/dockertest/v3

    adlio committed Jun 20, 2022
    Copy the full SHA
    102bd52 View commit details
  2. Merge branch 'runc-112'

    * runc-112:
      Updates to ory/dockertest/v3
    adlio committed Jun 20, 2022
    Copy the full SHA
    e6c285d View commit details
  3. Fix ory/dockertest

    adlio committed Jun 20, 2022
    Copy the full SHA
    40c6956 View commit details
  4. Merge branch 'runc-112'

    * runc-112:
      Fix ory/dockertest
    adlio committed Jun 20, 2022
    Copy the full SHA
    471923f View commit details
  5. Fix go.mod and go.sum

    adlio committed Jun 20, 2022
    Copy the full SHA
    128f3b3 View commit details
  6. Merge branch 'runc-112'

    * runc-112:
      Fix go.mod and go.sum
    adlio committed Jun 20, 2022
    Copy the full SHA
    a81a7a3 View commit details
  7. Add circleci

    adlio committed Jun 20, 2022
    Copy the full SHA
    33628d5 View commit details
  8. Module updates

    adlio committed Jun 20, 2022
    Copy the full SHA
    0a9113e View commit details
  9. CircleCI image update

    adlio committed Jun 20, 2022
    Copy the full SHA
    f5210da View commit details
  10. CircleCI Ubuntu version.

    adlio committed Jun 20, 2022
    Copy the full SHA
    41e0d31 View commit details
  11. Update build badge.

    adlio committed Jun 20, 2022
    Copy the full SHA
    95a1695 View commit details
  12. Fix badge link

    adlio committed Jun 20, 2022
    Copy the full SHA
    4775fe4 View commit details
Showing with 84 additions and 166 deletions.
  1. +45 −0 .circleci/config.yml
  2. +1 −1 README.md
  3. +2 −5 go.mod
  4. +33 −157 go.sum
  5. +1 −1 main_test.go
  6. +2 −2 testdb_test.go
45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
golangci-lint:
docker:
- image: circleci/golang:latest
steps:
- checkout
- run:
# https://golangci-lint.run/usage/install/
name: Install golangci-lint
# Note: It's likely the below URL's "master" will change to "main" someday.
# The version of golangci-lint being used can be changed with the vN.N.N at the end of this URL.
command: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ~/bin v1.42.0

- run:
name: Run Go Linters
command: ~/bin/golangci-lint run . --timeout 2m

go-build-and-test:
machine:
image: ubuntu-2204:2022.04.2
steps:
- checkout
- run:
name: Fetch Dependencies
command: go get -t .
- run:
name: Execute Go Build
command: go build .
- run:
name: Execute Go Tests
command: go test -race -coverprofile=coverage.txt -covermode=atomic
- run:
name: Upload Code Coverage
command: bash <(curl -s https://codecov.io/bash)

workflows:
version: 2
build:
jobs:
- golangci-lint
- go-build-and-test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ An embeddable library for applying changes to your Go application's
`database/sql` schema.

[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=for-the-badge)](https://pkg.go.dev/github.com/adlio/schema)
[![Travis Build Status](https://img.shields.io/travis/com/adlio/schema/main?style=for-the-badge)](https://travis-ci.com/github/adlio/schema)
[![CircleCI Build Status](https://img.shields.io/circleci/build/github/adlio/schema?style=for-the-badge)](https://dl.circleci.com/status-badge/redirect/gh/adlio/schema/tree/main)
[![Go Report Card](https://goreportcard.com/badge/github.com/adlio/schema?style=for-the-badge)](https://goreportcard.com/report/github.com/adlio/schema)
[![Code Coverage](https://img.shields.io/codecov/c/github/adlio/schema?style=for-the-badge)](https://codecov.io/gh/adlio/schema)

7 changes: 2 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -8,14 +8,13 @@ require (
github.com/go-sql-driver/mysql v1.6.0
github.com/lib/pq v1.10.4
github.com/mattn/go-sqlite3 v1.14.9
github.com/ory/dockertest v3.3.5+incompatible
github.com/ory/dockertest/v3 v3.9.1
)

require (
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/containerd/continuity v0.3.0 // indirect
github.com/docker/cli v20.10.17+incompatible // indirect
@@ -26,14 +25,12 @@ require (
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
github.com/golang-sql/sqlexp v0.0.0-20170517235910-f1bb20e5a188 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/gotestyourself/gotestyourself v2.2.0+incompatible // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.2 // indirect
github.com/opencontainers/runc v1.1.3 // indirect
github.com/ory/dockertest/v3 v3.9.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
@@ -43,5 +40,5 @@ require (
golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect
golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gotest.tools v2.2.0+incompatible // indirect
gopkg.in/yaml.v3 v3.0.0 // indirect
)
Loading