Skip to content

Commit

Permalink
ci: check packages features (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid authored Oct 10, 2023
1 parent ea1c4c9 commit a915f08
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ concurrency:
cancel-in-progress: true

on:
workflow_dispatch:
push:
branches:
- 'master'
tags:
- 'v*'
- 'geyser-v*'
- 'kafka-v*'
branches:
- 'master'
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -42,7 +42,6 @@ jobs:
toolchain: ${{ env.RUST_STABLE }}
override: true
profile: minimal
components: rustfmt

- uses: actions/cache@v3
with:
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ concurrency:
cancel-in-progress: true

on:
workflow_dispatch:
pull_request:
push:
branches:
- 'master'
workflow_dispatch:

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -36,7 +39,7 @@ jobs:
toolchain: ${{ env.RUST_STABLE }}
override: true
profile: minimal
components: rustfmt, clippy
components: clippy, rustfmt

- uses: actions/cache@v3
with:
Expand All @@ -60,16 +63,21 @@ jobs:
cargo tree --frozen
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --tests #-- --deny=warnings
run: cargo clippy --workspace --all-targets --tests #-- --deny=warnings

- name: check features in `client`
run: cargo check -p yellowstone-grpc-client --all-targets --tests
- name: check features in `client-simple`
run: cargo check -p yellowstone-grpc-client-simple --all-targets --tests
- name: check features in `geyser`
run: cargo check -p yellowstone-grpc-geyser --all-targets --tests
- name: check features in `kafka`
run: cargo check -p yellowstone-grpc-kafka --all-targets --tests
- name: check features in `proto`
run: cargo check -p yellowstone-grpc-proto --all-targets --tests

- name: Build
run: ./ci/cargo-build-test.sh
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
members = [
"examples/rust", # 1.10.0+solana.1.16.16
"yellowstone-grpc-client", # 1.11.1+solana.1.16.16
"yellowstone-grpc-geyser", # 1.9.0+solana.1.16.16
"yellowstone-grpc-geyser", # 1.9.1+solana.1.16.16
"yellowstone-grpc-kafka", # 1.0.0-rc.3+solana.1.16.16
"yellowstone-grpc-proto", # 1.10.0+solana.1.16.16
]
Expand Down

0 comments on commit a915f08

Please sign in to comment.