-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: badges, update GH workflows, dependabot (#16)
* chore: badges, update GH workflows, dependabot * fix GH workflow * clippy
- Loading branch information
1 parent
845d296
commit 39b7937
Showing
8 changed files
with
78 additions
and
28 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,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "cargo" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
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,47 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Rust toolchain | ||
run: | | ||
rustup update | ||
rustup toolchain install nightly | ||
rustup component add rustfmt --toolchain nightly | ||
rustup component add clippy --toolchain nightly | ||
- name: Set up cargo cache | ||
uses: actions/cache@v3 | ||
continue-on-error: false | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
restore-keys: ${{ runner.os }}-cargo- | ||
|
||
- name: Check code format (cargo fmt) | ||
run: cargo +nightly fmt --check | ||
|
||
- name: Lint (cargo clippy) | ||
run: cargo clippy --no-deps -- -D warnings | ||
|
||
- name: Test (cargo test) | ||
env: | ||
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }} | ||
run: | | ||
printenv GCP_SERVICE_ACCOUNT > pub-sub-client-tests/secrets/active-road-365118-2eca6b7b8fd9.json | ||
cargo test |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
members = [ "pub-sub-client", "pub-sub-client-derive", "pub-sub-client-tests" ] | ||
|
||
[workspace.package] | ||
version = "0.10.1-alpha.0" | ||
# No use to define version here, because cargo release ignores it! | ||
# version = "0.10.1-alpha.0" | ||
edition = "2021" | ||
description = "Google Cloud Pub/Sub client library" | ||
authors = [ "Heiko Seeberger <[email protected]>" ] | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
homepage = "https://github.com/hseeberger/pub-sub-client" | ||
repository = "https://github.com/hseeberger/pub-sub-client" | ||
documentation = "https://github.com/hseeberger/pub-sub-client" | ||
|
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
edition = "2021" | ||
|
||
unstable_features = true | ||
comment_width = 100 | ||
unstable_features = true | ||
comment_width = 100 | ||
imports_granularity = "Crate" | ||
wrap_comments = true | ||
wrap_comments = true |