Skip to content

Commit

Permalink
Merge pull request #29 from csueiras/downgrade-to-1.13
Browse files Browse the repository at this point in the history
Downgrade to Go 1.13
  • Loading branch information
csueiras authored Feb 18, 2021
2 parents ba617d6 + 474eaf8 commit bd0c95f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.13.x
- name: Checkout code
uses: actions/checkout@v2
- name: Run linters
Expand All @@ -25,7 +25,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ 1.15.x ]
go-version: [ 1.13.x ]
platform: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -46,7 +46,7 @@ jobs:
if: success()
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.13.x
- name: Checkout code
uses: actions/checkout@v2
- name: Calc coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.13
-
name: Cache Go modules
uses: actions/cache@v1
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/csueiras/reinforcer

go 1.15
go 1.13

require (
github.com/dave/jennifer v1.4.1
Expand Down
2 changes: 1 addition & 1 deletion internal/generator/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ func loadInterface(t *testing.T, filesCode map[string]input) []*generator.FileCo
},
}
exported := packagestest.Export(t, packagestest.GOPATH, mods)
t.Cleanup(exported.Cleanup)
defer exported.Cleanup()

l := loader.NewLoader(func(cfg *packages.Config, patterns ...string) ([]*packages.Package, error) {
exported.Config.Mode = cfg.Mode
Expand Down
4 changes: 2 additions & 2 deletions internal/loader/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Service interface {
}
`,
}}})
t.Cleanup(exported.Cleanup)
defer exported.Cleanup()

l := loader.NewLoader(func(cfg *packages.Config, patterns ...string) ([]*packages.Package, error) {
exported.Config.Mode = cfg.Mode
Expand Down Expand Up @@ -60,7 +60,7 @@ type NotAnInterface struct {
}
`,
}}})
t.Cleanup(exported.Cleanup)
defer exported.Cleanup()

t.Run("RegEx", func(t *testing.T) {
l := loader.NewLoader(func(cfg *packages.Config, patterns ...string) ([]*packages.Package, error) {
Expand Down

0 comments on commit bd0c95f

Please sign in to comment.