-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a276794
Showing
15 changed files
with
2,348 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
changelog: | ||
categories: | ||
- title: 💣 Breaking Changes | ||
labels: | ||
- breaking-change | ||
- title: 🚀 Features | ||
labels: | ||
- feature | ||
- title: 🐛 Bug Fixes | ||
labels: | ||
- bug | ||
- title: 📝 Documentation | ||
labels: | ||
- doc | ||
- title: 🧪 Tests | ||
labels: | ||
- test | ||
- title: 🛠️ Build | ||
labels: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Build | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**/*.rs' | ||
- Cargo.lock | ||
- Cargo.toml | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@master | ||
|
||
- name: Build | ||
run: cargo build --all-features | ||
|
||
- name: Build examples | ||
run: cargo build --examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Lint | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@main | ||
with: | ||
cache: pip | ||
python-version: '3' | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/action@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Release | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: ['*'] | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@master | ||
|
||
- name: Publish | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
run: cargo publish --all-features | ||
|
||
- name: Create release | ||
uses: softprops/action-gh-release@master | ||
with: | ||
generate_release_notes: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-json | ||
- id: check-yaml | ||
- id: pretty-format-json | ||
args: [--autofix] | ||
- id: trailing-whitespace | ||
exclude: .rs$ | ||
- id: end-of-file-fixer | ||
exclude: .rs$ | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.11.0 | ||
hooks: | ||
- id: pretty-format-yaml | ||
args: [--autofix] | ||
- id: pretty-format-toml | ||
args: [--autofix] | ||
- repo: https://github.com/doublify/pre-commit-rust | ||
rev: v1.0 | ||
hooks: | ||
- id: fmt | ||
- id: cargo-check | ||
args: [--all-features] | ||
- id: clippy | ||
args: [--all-features, --tests, --, -D, warnings] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Contributing | ||
|
||
## Requirement | ||
|
||
- [Rust](https://rustup.rs/) | ||
- [pre-commit](https://pre-commit.com/) | ||
|
||
## Getting started | ||
|
||
```bash | ||
git clone https://github.com/leroyguillaume/stream-consumer-task.git | ||
cd stream-consumer-task | ||
pre-commit install | ||
``` | ||
|
||
## How to build | ||
|
||
```bash | ||
cargo build --all-features | ||
``` |
Oops, something went wrong.