From 09453dcfdf86220c3056e5a18dba8aada7deeb3f Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Thu, 10 Aug 2023 23:06:47 +0200 Subject: [PATCH] Bump CI (#2) --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/build.yml | 18 ++++++------------ README.md | 17 ++++++----------- 3 files changed, 22 insertions(+), 23 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..20d5f35 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: gomod + directory: "/" + schedule: + interval: daily + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93c6c18..49e2b0e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,20 +4,14 @@ on: push: branches: [main] pull_request: - workflow_dispatch: - inputs: - tag: - description: 'Tag to create' - required: true - default: 'v0.0.0' + branches: [main] + schedule: + - cron: '0 0 * * 0' # run "At 00:00 on Sunday" # See https://github.com/cristalhq/.github/.github/workflows jobs: build: - uses: cristalhq/.github/.github/workflows/build.yml@main + uses: cristalhq/.github/.github/workflows/build.yml@v0.5.0 - release: - if: github.event_name == 'workflow_dispatch' - uses: cristalhq/.github/.github/workflows/release.yml@main - with: - tag: ${{ github.event.input.tag }} + vuln: + uses: cristalhq/.github/.github/workflows/vuln.yml@v0.5.0 diff --git a/README.md b/README.md index 0826d9a..a3f00b4 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ [![build-img]][build-url] [![pkg-img]][pkg-url] -[![reportcard-img]][reportcard-url] -[![coverage-img]][coverage-url] +[![version-img]][version-url] Package implements Bencode encoding and decoding in Go. @@ -14,6 +13,8 @@ Package implements Bencode encoding and decoding in Go. * Optimized for speed. * Dependency-free. +See [docs][pkg-url]. + ## Install Go version 1.15+ @@ -68,11 +69,7 @@ fmt.Printf("unmarshaled: %v\n", data) // unmarshaled: [1 42] ``` -See those examples: [example_test.go](https://github.com/cristalhq/bencode/blob/master/example_test.go). - -## Documentation - -See [these docs][pkg-url]. +See examples: [example_test.go](example_test.go). ## License @@ -82,7 +79,5 @@ See [these docs][pkg-url]. [build-url]: https://github.com/cristalhq/bencode/actions [pkg-img]: https://pkg.go.dev/badge/cristalhq/bencode [pkg-url]: https://pkg.go.dev/github.com/cristalhq/bencode -[reportcard-img]: https://goreportcard.com/badge/cristalhq/bencode -[reportcard-url]: https://goreportcard.com/report/cristalhq/bencode -[coverage-img]: https://codecov.io/gh/cristalhq/bencode/branch/master/graph/badge.svg -[coverage-url]: https://codecov.io/gh/cristalhq/bencode +[version-img]: https://img.shields.io/github/v/release/cristalhq/bson +[version-url]: https://github.com/cristalhq/bson/releases