Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ci: miscellaneous chores and fixes #3

Merged
merged 26 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a98c837
build(header-accumulator): fix workspace crate dev-dependency import
suchapalaver Oct 15, 2024
f16bdfa
build: install protoc in CI tests
suchapalaver Oct 15, 2024
93f2e00
fix(header-accumulator): fix cargo fmt
suchapalaver Oct 14, 2024
733a1f5
chore(flat-files-decoder): fix clippy::doc-lazy-continuation warning
suchapalaver Oct 15, 2024
33c754e
chore(firehose-client): fix clippy::unnecessary_to_owned warning
suchapalaver Oct 15, 2024
e40556a
chore(flat-files-decoder): fix clippy::filter_next warning
suchapalaver Oct 15, 2024
3705bb6
chore(sf-protos): fix code snippet in doc comment
suchapalaver Oct 15, 2024
21bdfdf
chore(header-accumulator): fix clippy::bool_assert_comparison
suchapalaver Oct 16, 2024
120ac61
chore(firehose-client): add streaming support for beacon and ethereum
suchapalaver Oct 15, 2024
8430aab
build(forrestrie): add firehose-client as dependency
suchapalaver Oct 15, 2024
4ec2c70
build(forrestrie): add reqwest as dependency
suchapalaver Oct 15, 2024
3d44c90
chore(forrestrie): make historical roots index public
suchapalaver Oct 15, 2024
21317fe
chore(forrestrie): add fetch and verify block example
suchapalaver Oct 15, 2024
1e93ca9
chore(forrestrie): add verify block inclusion proof example
suchapalaver Oct 15, 2024
fa54cc1
chore(forrestrie): add historical state roots proof example
suchapalaver Oct 15, 2024
087b3a0
chore(forrestrie): add historical summary proof example
suchapalaver Oct 15, 2024
6ce6b94
chore(forrestrie): add block roots proof example
suchapalaver Oct 15, 2024
3706e89
chore(forrestrie): add block roots only proof example
suchapalaver Oct 15, 2024
f71482a
chore(forrestrie): add empty slot hashes example
suchapalaver Oct 16, 2024
2330798
chore(firehose-client): add fetch ethereum block example
suchapalaver Oct 16, 2024
74462fc
chore(firehose-client): add stream ethereum blocks example
suchapalaver Oct 16, 2024
c79ee4f
chore(firehose-client): add stream beacon blocks example
suchapalaver Oct 16, 2024
70a1664
chore(forehose-client): add fetch beacon block example
suchapalaver Oct 16, 2024
cd51b5b
docs: add note on examples to README
suchapalaver Oct 15, 2024
b2b9f75
build(workspace): use workspace dependency imports for legibility
suchapalaver Oct 16, 2024
5eff046
ci(tests): remove coverage requirements for now
suchapalaver Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading