diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 233c1df9..17e0c6d3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,10 +1,14 @@ -on: [push] +on: + push: + branches: + - main + pull_request: name: CI jobs: build_and_test: - name: Rust project + name: Rust Abstract Account Bundler Project runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -15,6 +19,15 @@ jobs: - name: Setup run: | make fetch-thirdparty + - name: Install solc + run: | + sudo add-apt-repository ppa:ethereum/ethereum + sudo add-apt-repository ppa:ethereum/ethereum-dev + sudo apt-get update + sudo apt-get install solc + - name: Build + run: | + make build - name: Lint run: | make lint diff --git a/Makefile b/Makefile index f7c43050..2060546c 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ lint: cargo fmt --all -- --check cargo clippy -- -D warnings -A clippy::derive_partial_eq_without_eq +build: + cargo build + cargo-test: cargo test