Skip to content

Commit

Permalink
Version 2.X (#155)
Browse files Browse the repository at this point in the history
Remove support for Go versions below 1.20

---------

Co-authored-by: Jonathan Schweder <jonathanschweder@amazon.com>
  • Loading branch information
jaswdr and Jonathan Schweder authored Nov 19, 2023
1 parent d2fb71c commit 48d2fba
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.14'
go-version: '1.20'
- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
run: bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x]
go-version: [1.20.x, 1.21.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Faker is a Go library that generates fake data for you. Whether you need to boot

Faker is heavily inspired by PHP"s [Faker](https://github.com/fzaninotto/Faker)

Faker requires Go >= 1.11
Faker requires Go >= 1.11 and < 1.20 for 1.X and Go >= 1.20 for 2.X

[![PkgGoDev](https://pkg.go.dev/badge/github.com/jaswdr/faker)](https://pkg.go.dev/github.com/jaswdr/faker)
[![Test](https://github.com/jaswdr/faker/actions/workflows/test.yml/badge.svg)](https://github.com/jaswdr/faker/actions/workflows/test.yml)
Expand Down Expand Up @@ -144,6 +144,10 @@ ok github.com/jaswdr/faker 0.010s

Push to your fork and send a new pull request from your fork to this repository.

## Versioning

Faker is maintained under the [Semantic Versioning guidelines](http://semver.org/). Starting at `2.X`, we only support maintained versions of Go. Which according to [Go's Release Policy](https://go.dev/doc/devel/release) means that we only support the two newer major versions.

## License

Faker is released under the MIT Licence. See the bundled LICENSE file for details.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/jaswdr/faker

go 1.11
go 1.20

0 comments on commit 48d2fba

Please sign in to comment.