hyperscale / hyperpic

Fast HTTP microservice for high-level image processing.
MIT License
31 stars 2 forks source link

build(deps): bump actions/setup-go from 2 to 4 #113

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps actions/setup-go from 2 to 4.

Release notes

Sourced from actions/setup-go's releases.

v4.0.0

In scope of release we enable cache by default. The action won’t throw an error if the cache can’t be restored or saved. The action will throw a warning message but it won’t stop a build process. The cache can be disabled by specifying cache: false.

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v4
    with:
      go-version: ‘1.19’
  - run: go run hello.go

Besides, we introduce such changes as

Add support for stable and oldstable aliases

In scope of this release we introduce aliases for the go-version input. The stable alias instals the latest stable version of Go. The oldstable alias installs previous latest minor release (the stable is 1.19.x -> the oldstable is 1.18.x).

Stable

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
    with:
      go-version: 'stable'
  - run: go run hello.go

OldStable

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
    with:
      go-version: 'oldstable'
  - run: go run hello.go

Add support for go.work and pass the token input through on GHES

In scope of this release we added support for go.work file to pass it in go-version-file input.

steps:
  - uses: actions/checkout@v3
  - uses: actions/setup-go@v3
</tr></table> 

... (truncated)

Commits
  • 4d34df0 Update configuration files (#348)
  • fdc0d67 Add Go bin if go-version input is empty (#351)
  • ebfdf6a add warning if go-version is empty (#350)
  • b27d769 fix lockfileVersion (#349)
  • c51a720 Enable caching by default with default input (#332)
  • 6b848af Merge pull request #343 from akv-platform/reusable-workflow
  • 12741cc Format update-config-files.yml
  • 7a77a6a Merge branch 'main' into reusable-workflow
  • 42a0cc8 Add update-config-files.yml
  • 7406d65 Add and configure ESLint and update configuration for Prettier (#341)
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
github-actions[bot] commented 1 year ago

Code Coverage


github.com/hyperscale/hyperpic/cmd/hyperpic/app/config/configuration.go:23:         NewConfiguration        100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/config/image_support_configuration.go:13:   IsExtSupported          100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/doc_controller.go:20:        NewDocController        100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/doc_controller.go:25:        Mount               100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/doc_controller.go:31:        getSwaggerHandler       100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/doc_controller.go:51:        getDocHandler           100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:38:      NewImageController      100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:55:      Mount               100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:77:      getHandler          100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:153:     parseImageFileFromRequest   100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:192:     postHandler         88.9%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/controller/image_controller.go:253:     deleteHandler           100.0%
github.com/hyperscale/hyperpic/cmd/hyperpic/app/metrics/metrics.go:11:              init                100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/fsutil/fs.go:12:                    ContainsDotDot          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/fsutil/fs.go:26:                    isSlashRune         100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/error.go:21:               Error               100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/error.go:26:               GetCode             100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/error.go:31:               GetMessage          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:23:           init                100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:56:           Copy                100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:69:           ParseTime           100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:83:           ParseList           100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:132:          ParseValueAndParams     86.4%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:169:          ParseAccept         90.5%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:201:          skipSpace           100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:211:          expectToken         100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:221:          expectTokenSlash        100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:232:          expectQuality           94.7%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/header/header.go:262:          expectTokenOrQuoted     90.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/negotiate.go:18:               NegotiateContentEncoding    100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/negotiate.go:45:               NegotiateContentType        100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/httputil/response.go:15:                ServeImage          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/mock_processor.go:13:             ProcessImage            0.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:26:              NewOptionParser         100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:39:              register            100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:47:              colorConverter          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:95:              angleConverter          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:104:             formatConverter         100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:113:             fitConverter            100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:122:             cropConverter           100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/option_parser.go:163:             Parse               75.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/options.go:121:               Hash                100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/options.go:149:               ToBimg              100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/process.go:31:                NewProcessor            100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/process.go:35:                process             50.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/process.go:61:                ProcessImage            84.6%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/process.go:95:                GetImageMimeType        100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/type.go:14:                   ExtractImageTypeFromMime    100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/type.go:29:                   IsImageMimeTypeSupported    100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/type.go:36:                   IsFormatSupported       100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/image/type.go:50:                   ExtensionToType         100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/logger/configuration.go:16:             Level               100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/logger/handler.go:16:               Handler             100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:36:                 NewBuffer           100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:48:                 Seek                100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:73:                 Write               88.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:88:                 Close               100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:95:                 Read                100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:112:                ReadAt              100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:132:                Truncate            90.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:150:                grow                91.7%
github.com/hyperscale/hyperpic/pkg/hyperpic/memfs/buffer.go:170:                makeSlice           100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/auth_handler.go:16:         NewAuthHandler          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/client_hints_handler.go:14:     parseInt            100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/client_hints_handler.go:18:     parseFloat          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/client_hints_handler.go:26:     NewClientHintsHandler       100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/content_type_handler.go:17:     NewContentTypeHandler       100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/image_extension_filter_handler.go:18:   NewImageExtensionFilterHandler  100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/options_handler.go:17:          NewOptionsContext       100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/options_handler.go:22:          OptionsFromContext      100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/options_handler.go:36:          NewOptionsHandler       100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/path_handler.go:17:         NewPathHandler          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/middlewares/security_handler.go:12:         NewSecurityHandler      100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:27:       NewCacheProvider        100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:37:       removeOldCacheFile      75.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:55:       Run             87.5%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:74:       Del             100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:85:       Get             76.2%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/cache_provider.go:133:      Set             76.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/source_provider.go:24:      NewSourceProvider       100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/source_provider.go:31:      Set             84.6%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/source_provider.go:58:      Get             88.9%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/filesystem/source_provider.go:106:     Del             100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:30:       NewCacheProvider        100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:41:       removeOldCache          100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:56:       Run             100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:85:       Del             100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:115:      Get             100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/provider/memory/cache_provider.go:147:      Set             100.0%
github.com/hyperscale/hyperpic/pkg/hyperpic/server/configuration.go:44:             ToConfig            100.0%
total:                                              (statements)            94.6%

Pusher: @euskadi31, Action: pull_request, Workflow: Go

github-actions[bot] commented 1 year ago

Benchmark

Pusher: @euskadi31, Action: pull_request, Workflow: Go