Skip to content

Commit

Permalink
CI: add build/lint/test workflow (#1)
Browse files Browse the repository at this point in the history
* feat: add ci

* fix: remove unnecessary --locked

* chore: ignore file-dependent integration test
  • Loading branch information
Evalir committed Mar 26, 2023
1 parent 60b6465 commit 0714822
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Rust

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

workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1

- name: Build agents
run: cargo build --workspace --all-features --verbose

test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1

- name: Run tests
run: cargo test --workspace --all-features --verbose

lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1

- name: Rustfmt
run: cargo fmt --all -- --check

- name: Clippy
run: cargo clippy --workspace --all-features -- -D warnings
1 change: 1 addition & 0 deletions src/rpc/msig_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ mod test {
use super::MsigTxResponse;

#[test]
#[ignore] // TODO: move these integration test files to the repo
fn it_parses() {
#[derive(serde::Deserialize)]
struct Shape {
Expand Down

0 comments on commit 0714822

Please sign in to comment.