From 5d293b49b355199465ebd74d7d70b22d377b6ffc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 7 Apr 2023 02:59:42 +0000 Subject: [PATCH 1/4] Bump golang.org/x/image from 0.6.0 to 0.7.0 Bumps [golang.org/x/image](https://github.com/golang/image) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/golang/image/releases) - [Commits](https://github.com/golang/image/compare/v0.6.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/image dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 1dd90ab..b5f230d 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/essentialkaos/check v1.4.0 github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 - golang.org/x/image v0.6.0 + golang.org/x/image v0.7.0 ) require ( diff --git a/go.sum b/go.sum index 23832fb..0d5b5a7 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,8 @@ github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/f github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/image v0.6.0 h1:bR8b5okrPI3g/gyZakLZHeWxAR8Dn5CyxXv1hLH5g/4= -golang.org/x/image v0.6.0/go.mod h1:MXLdDR43H7cDJq5GEGXEVeeNhPgi+YYEQ2pC1byI1x0= +golang.org/x/image v0.7.0 h1:gzS29xtG1J5ybQlv0PuyfE3nmc6R4qB73m6LUUmvFuw= +golang.org/x/image v0.7.0/go.mod h1:nd/q4ef1AKKYl/4kft7g+6UyGbdiqWqTP1ZAbRoV7Rg= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -37,7 +37,7 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= From 3f2686ace99c9ccb9d468054262fe9deb856a3bc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Apr 2023 03:59:37 +0000 Subject: [PATCH 2/4] Bump essentialkaos/aligo-action from 1 to 2 Bumps [essentialkaos/aligo-action](https://github.com/essentialkaos/aligo-action) from 1 to 2. - [Release notes](https://github.com/essentialkaos/aligo-action/releases) - [Commits](https://github.com/essentialkaos/aligo-action/compare/v1...v2) --- updated-dependencies: - dependency-name: essentialkaos/aligo-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5d9da2..98690dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,7 +104,7 @@ jobs: run: make deps - name: Check Golang sources with Aligo - uses: essentialkaos/aligo-action@v1 + uses: essentialkaos/aligo-action@v2 with: path: ${{env.SRC_DIR}} files: ./... From f092c6a00ef156c1dca26803276f0a098033a099 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 11 Apr 2023 16:04:25 +0300 Subject: [PATCH 3/4] Improve CI workflow --- .github/workflows/ci.yml | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98690dd..7c158fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - SRC_DIR: src/github.com/${{ github.repository }} - jobs: Go: name: Go @@ -35,34 +32,28 @@ jobs: go: [ '1.18.x', '1.19.x', '1.20.x' ] steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v4 with: go-version: ${{ matrix.go }} - - name: Checkout - uses: actions/checkout@v3 - with: - path: ${{env.SRC_DIR}} - - name: Download dependencies - working-directory: ${{env.SRC_DIR}} run: make deps - name: Download Verdana font - working-directory: ${{env.SRC_DIR}} run: curl -L -o 'Verdana.ttf' 'https://github.com/matomo-org/travis-scripts/raw/master/fonts/Verdana.ttf' - name: Run tests - working-directory: ${{env.SRC_DIR}} run: go test -v -covermode count -coverprofile cover.out ./... - name: Send coverage data - uses: essentialkaos/goveralls-action@v1 + uses: essentialkaos/goveralls-action@v2 env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - path: ${{env.SRC_DIR}} profile: cover.out parallel: true flag-name: linux-${{ matrix.go }} @@ -75,7 +66,7 @@ jobs: steps: - name: Finish parallel tests - uses: essentialkaos/goveralls-action@v1 + uses: essentialkaos/goveralls-action@v2 env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -88,23 +79,18 @@ jobs: needs: Go steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Go uses: actions/setup-go@v4 with: go-version: '1.19.x' - id: go - - - name: Checkout - uses: actions/checkout@v3 - with: - path: ${{env.SRC_DIR}} - name: Download dependencies - working-directory: ${{env.SRC_DIR}} run: make deps - name: Check Golang sources with Aligo uses: essentialkaos/aligo-action@v2 with: - path: ${{env.SRC_DIR}} files: ./... From 29b9c2aaddfcfed3894252d78f08685b52051c17 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Tue, 11 Apr 2023 16:08:29 +0300 Subject: [PATCH 4/4] Remove version from code --- badge.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/badge.go b/badge.go index d951827..39db458 100644 --- a/badge.go +++ b/badge.go @@ -22,9 +22,6 @@ import ( // ////////////////////////////////////////////////////////////////////////////////// // -// VERSION is current package version -const VERSION = "1.3.0" - const ( COLOR_BLUE = "#007ec6" COLOR_BRIGHTGREEN = "#4c1"