From ea0ea711ad78e57d465d208d898593717af028ac Mon Sep 17 00:00:00 2001 From: LJ <81748770+elle-j@users.noreply.github.com> Date: Tue, 12 Aug 2025 16:12:14 +0200 Subject: [PATCH] Update workflows to skip tests for only `.md` files (#371) When updating documentation Markdown files, long-running tests still run unnecessarily. With these changes, it will skip running test workflows when PRs only containing changes to such files are opened. Co-authored-by: xermicus --- .github/workflows/test-llvm-builder.yml | 2 ++ .github/workflows/test-wasm.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/test-llvm-builder.yml b/.github/workflows/test-llvm-builder.yml index 4ff1a7d..66c9079 100644 --- a/.github/workflows/test-llvm-builder.yml +++ b/.github/workflows/test-llvm-builder.yml @@ -7,6 +7,8 @@ on: - 'LLVM.lock' - 'crates/llvm-builder/**' - '.github/workflows/test-llvm-builder.yml' + paths-ignore: + - "**.md" concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/test-wasm.yml b/.github/workflows/test-wasm.yml index 7beb396..2a1769f 100644 --- a/.github/workflows/test-wasm.yml +++ b/.github/workflows/test-wasm.yml @@ -2,9 +2,13 @@ name: Test Wasm Version on: push: branches: ["main"] + paths-ignore: + - "**.md" pull_request: branches: ["main"] types: [opened, synchronize] + paths-ignore: + - "**.md" concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d265e63..20d5d9d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,13 @@ name: Test on: push: branches: ["main"] + paths-ignore: + - "**.md" pull_request: branches: ["main"] types: [opened, synchronize] + paths-ignore: + - "**.md" concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}