diff --git a/.github/workflows/nextjs.yml b/.github/workflows/frontend.yml similarity index 92% rename from .github/workflows/nextjs.yml rename to .github/workflows/frontend.yml index bdf2197..083a1c6 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/frontend.yml @@ -10,13 +10,14 @@ on: branches: [main] pull_request: paths: - - 'crates/web/frontend/**' + - "crates/web/frontend/**" + - ".github/workflows/frontend.yml" # If new code is pushed to a PR branch, then cancel in progress workflows for that PR. Ensures that # we don't waste CI time, and returns results quicker https://github.com/jonhoo/rust-ci-conf/pull/5 concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true -name: nextjs +name: frontend jobs: ci: runs-on: ubuntu-latest diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 620ab15..9b11534 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,6 +10,12 @@ on: push: branches: [main] pull_request: + paths: + - "crates/**" + - "**Cargo.toml" + - "**Cargo.lock" + - ".github/workflows/rust.yml" + - "!crates/web/frontend/**" # If new code is pushed to a PR branch, then cancel in progress workflows for that PR. Ensures that # we don't waste CI time, and returns results quicker https://github.com/jonhoo/rust-ci-conf/pull/5 concurrency: