diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 18a2193..17c7e74 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,21 @@ name: test -on: [push, pull_request] +on: + pull_request: + paths: + - .github/workflows/test.yml + - Cargo.toml + - Cargo.lock + - ci/** + - crates/** + push: + branches: main + paths: + - .github/workflows/test.yml + - Cargo.toml + - Cargo.lock + - ci/** + - crates/** + jobs: test: runs-on: ubuntu-latest @@ -8,7 +24,6 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions-rs/cargo@v1 - run: make lint - run: cargo test - run: cargo build --bin ethlc