Skip to content

Commit

Permalink
fix ci: miscellaneous chores and fixes (#3)
Browse files Browse the repository at this point in the history
* build(header-accumulator): fix workspace crate dev-dependency import

* build: install protoc in CI tests

* fix(header-accumulator): fix cargo fmt

* chore(flat-files-decoder): fix clippy::doc-lazy-continuation warning

* chore(firehose-client): fix clippy::unnecessary_to_owned warning

* chore(flat-files-decoder): fix clippy::filter_next warning

* chore(sf-protos): fix code snippet in doc comment

* chore(header-accumulator): fix clippy::bool_assert_comparison

* chore(firehose-client): add streaming support for beacon and ethereum

* build(forrestrie): add firehose-client as dependency

* build(forrestrie): add reqwest as dependency

* chore(forrestrie): make historical roots index public

* chore(forrestrie): add fetch and verify block example

* chore(forrestrie): add verify block inclusion proof example

* chore(forrestrie): add historical state roots proof example

* chore(forrestrie): add historical summary proof example

* chore(forrestrie): add block roots proof example

* chore(forrestrie): add block roots only proof example

* chore(forrestrie): add empty slot hashes example

* chore(firehose-client): add fetch ethereum block example

* chore(firehose-client): add stream ethereum blocks example

* chore(firehose-client): add stream beacon blocks example

* chore(forehose-client): add fetch beacon block example

* docs: add note on examples to README

* build(workspace): use workspace dependency imports for legibility

* ci(tests): remove coverage requirements for now
  • Loading branch information
suchapalaver authored Oct 16, 2024
1 parent e1bb4b8 commit 3169e90
Show file tree
Hide file tree
Showing 23 changed files with 1,170 additions and 972 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ jobs:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
- run: |
rustup component add clippy
# Temporarily allowing dead-code, while denying all other warnings
cargo clippy --all-features --all-targets -- -A dead-code -D warnings
test-and-coverage:
name: cargo test and coverage
test:
name: cargo test
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -63,14 +65,10 @@ jobs:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Run tests and generate coverage report
run: cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@643bc377ffa44ace6394b2b5d0d3950076de9f63 # v2.3.0
with:
file: ./lcov.info
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Run tests
run: cargo test --all-features --workspace

# Cannot do with llvm-cov, see https://github.com/taiki-e/cargo-llvm-cov/issues/2
test-docs:
Expand All @@ -95,6 +93,8 @@ jobs:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Test documentation code snippets
run: cargo test --doc --all-features --workspace

Expand All @@ -116,11 +116,13 @@ jobs:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Cargo check
run: cargo check

audit:
name: Cargo Audit
name: cargo audit
runs-on: ubuntu-latest
permissions:
actions: read
Expand All @@ -141,6 +143,8 @@ jobs:
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@89e9040de88b577a072e3760aaf59f585da083af #v0.0.5
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Install Cargo Audit
run: |
cargo install cargo-audit
Expand Down
Loading

0 comments on commit 3169e90

Please sign in to comment.