Skip to content

Commit

Permalink
Bump CI (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Aug 10, 2023
1 parent 11bd72c commit 09453dc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 23 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
18 changes: 6 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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+
Expand Down Expand Up @@ -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

Expand All @@ -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

0 comments on commit 09453dc

Please sign in to comment.