From c44aadf28f8c3f4889980febe1c8d7c127165de2 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 16 Mar 2024 20:29:47 -0700 Subject: [PATCH] update README for v4, update supported Golang versions (#277) --- .github/workflows/tests.yml | 6 +++++- README.md | 16 +++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9f991f1a..1fc8a633 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,18 +8,22 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [ '1.18', '1.19', '1.20' ] + go-version: [ '1.20', '1.21', '1.22' ] steps: - uses: actions/checkout@v3 + - name: Setup Go ${{ matrix.go-version }} uses: actions/setup-go@v3 with: go-version: ${{ matrix.go-version }} + - name: Build run: go build -v ./... + - name: Test run: go test -coverprofile=coverage.txt -v ./... + - name: Upload code coverage results uses: codecov/codecov-action@v3 with: diff --git a/README.md b/README.md index 6730bc06..e76f297f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,21 @@ The new home of Conversio's Shopify Go library. ## Supported Go Versions -This library is tested automatically against the latest version of Go (currently 1.20) and the two previous versions (1.19, 1.18) but should also work with older versions. +This library is tested automatically against the latest version of Go (currently 1.22) and the two previous versions (1.21, 1.20) but should also work with older versions. + +## Install v4 + +```console +$ go get github.com/bold-commerce/go-shopify/v4 +``` + +## Use v4 + +```go +import "github.com/bold-commerce/go-shopify/v4" +``` + +This gives you access to the `goshopify` package. ## Install v3