Skip to content

Commit

Permalink
Add GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
romanovich23 committed Dec 8, 2024
1 parent cee88d9 commit bee4f72
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI Pipeline

permissions:
contents: read

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/[email protected]
with:
toolchain: stable
profile: minimal
override: true

- name: Build project
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ runtimes:
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
enabled:
- [email protected]
- [email protected]
- [email protected]
- git-diff-check
Expand Down
2 changes: 1 addition & 1 deletion tests/test_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn test_load_config_env() {
fn test_load_config_default() {
let config = load_config(Option::None);
assert_eq!(config.network.url(), "ws://localhost:8545");
assert_eq!(config.subscriptions.len(), 2);
assert_eq!(config.subscriptions.len(), 4);
assert_eq!(
config.subscriptions[0].contract_address,
Address::from_str("0x061b3e39A7f08F739641D31b9aD5795B3a34159f").unwrap()
Expand Down

0 comments on commit bee4f72

Please sign in to comment.