From f72e855c443e33c455f21d1dc5e221f70a71d09e Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Tue, 5 Nov 2024 13:26:27 -0800 Subject: [PATCH 1/4] .github/workflows: only run tests when Go or other code files change --- .github/workflows/test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index ef5972e2..fcc78eef 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,6 +5,13 @@ on: branches: - main pull_request: + paths: + - '**.go' + - '**.mod' + - '**.sum' + - '**.wit' + - '**.yaml' + - 'Makefile' env: wasm-tools-version: "1.219.1" From 59f4d0c842b9effa5b14f742dff583020f3ccf7d Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Tue, 5 Nov 2024 13:37:02 -0800 Subject: [PATCH 2/4] .github/workflows: use paths-ignore --- .github/workflows/test.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fcc78eef..64e369ac 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -5,13 +5,12 @@ on: branches: - main pull_request: - paths: - - '**.go' - - '**.mod' - - '**.sum' - - '**.wit' - - '**.yaml' - - 'Makefile' + paths-ignore: + - '/LICENSE' + - '/*.md' + - '/docs/**' + - '/.vscode/**' + - '/.prettier*' env: wasm-tools-version: "1.219.1" From 415ca7b8660d7ba4e94546db209a73342ddc9e89 Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Tue, 5 Nov 2024 13:37:31 -0800 Subject: [PATCH 3/4] .github/workflows: use paths-ignore (sorted) --- .github/workflows/test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 64e369ac..c59d1dda 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,11 +6,11 @@ on: - main pull_request: paths-ignore: - - '/LICENSE' + - '/.prettier*' + - '/.vscode/**' - '/*.md' - '/docs/**' - - '/.vscode/**' - - '/.prettier*' + - '/LICENSE' env: wasm-tools-version: "1.219.1" From 07ef3cb2570b30c7228f3d4145994dab80e8b70b Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Tue, 5 Nov 2024 13:39:12 -0800 Subject: [PATCH 4/4] .github/workflows: use paths-ignore (without / prefix) --- .github/workflows/test.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c59d1dda..22721020 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,11 +6,11 @@ on: - main pull_request: paths-ignore: - - '/.prettier*' - - '/.vscode/**' - - '/*.md' - - '/docs/**' - - '/LICENSE' + - '.prettier*' + - '.vscode/**' + - '*.md' + - 'docs/**' + - 'LICENSE' env: wasm-tools-version: "1.219.1"