From 48648f06cfb76559a6d9303b428027061435b8d7 Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Sun, 14 Jan 2024 16:06:34 +0900 Subject: [PATCH] modify action Signed-off-by: Jun Kimura --- .github/workflows/test.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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