From 9eec9eae5d4a116d5575a295180bca9eb5b5167c Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Tue, 6 Jun 2023 04:23:16 -0700 Subject: [PATCH] chore: update ci --- .github/workflows/ci.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b25cc10..88c90df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,8 +4,16 @@ on: workflow_dispatch: push: branches: [ "main" ] + paths: + - 'Cargo.toml' + - 'Cargo.lock' + - 'crates/**' pull_request: branches: ["main" ] + paths: + - 'Cargo.toml' + - 'Cargo.lock' + - 'crates/**' concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} @@ -14,24 +22,8 @@ concurrency: cancel-in-progress: true jobs: - changes: - runs-on: ubuntu-latest - outputs: - changes: ${{ steps.changes.outputs.src }} - steps: - - uses: dorny/paths-filter@v2 - id: changes - with: - filters: | - src: - - 'crates/**' - - 'Cargo.toml' - - 'Cargo.lock' - tests: runs-on: ubuntu-latest - needs: changes - if: needs.changes.outputs.changes == 'true' steps: - uses: actions/checkout@v3 with: