Skip to content

Commit

Permalink
Update CI: Rust version, warnings are considered errors
Browse files Browse the repository at this point in the history
  • Loading branch information
limemloh committed Sep 11, 2024
1 parent d60ea69 commit 672c25a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build-test-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
RUST_FMT: nightly-2023-04-01-x86_64-unknown-linux-gnu
RUST_CLIPPY: 1.68
RUST_CLIPPY: 1.73

jobs:
rustfmt:
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
run: cargo build --manifest-path=./rust-bindings/Cargo.toml --release

- name: Test Rust Project
run: cargo test --manifest-path=./rust-bindings/Cargo.toml --release
run: cargo test --manifest-path=./rust-bindings/Cargo.toml --release

- name: Setup .NET
uses: actions/setup-dotnet@v3
Expand All @@ -58,11 +58,12 @@ jobs:
- name: Restore dependencies
run: dotnet restore

- name: Check formatting
run: dotnet format --verify-no-changes

- name: Build
run: dotnet build --no-restore
run: dotnet build --no-restore -warnaserror

- name: Test
run: dotnet test --filter FullyQualifiedName!~IntegrationTests --no-build --verbosity normal

- name: Check formatting
run: dotnet format --verify-no-changes
1 change: 1 addition & 0 deletions src/Types/DelegationEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ internal static IDelegationEvent From(DelegationEvent delegationEvent) =>
DelegationAdded.From(delegationEvent.DelegationAdded),
DelegationEvent.EventOneofCase.DelegationRemoved =>
DelegationRemoved.From(delegationEvent.DelegationRemoved),
DelegationEvent.EventOneofCase.BakerRemoved => throw new NotImplementedException(),
DelegationEvent.EventOneofCase.None =>
throw new MissingEnumException<DelegationEvent.EventOneofCase>(delegationEvent.EventCase),
_ => throw new MissingEnumException<DelegationEvent.EventOneofCase>(delegationEvent.EventCase)
Expand Down

0 comments on commit 672c25a

Please sign in to comment.