From 87c615126a96033d03413998204eb76b05047750 Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Mon, 30 Oct 2023 23:46:21 +0200 Subject: [PATCH] Use paths on CI to speed it up. --- .github/workflows/deno.yml | 10 ++++++++++ .github/workflows/node.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 68138399..6027632c 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -4,8 +4,18 @@ name: Deno on: push: branches: ["master"] + paths: + - "**.js" # Any JS file + - "package.json" + - "package-lock.json" + - ".github/workflows/node.yml" # This action pull_request: branches: ["master"] + paths: + - "**.js" # Any JS file + - "package.json" + - "package-lock.json" + - ".github/workflows/node.yml" # This action permissions: contents: read diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index f2e2c6ac..03075fd2 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -4,8 +4,18 @@ name: Node on: push: branches: [ "master" ] + paths: + - "**.js" # Any JS file + - "package.json" + - "package-lock.json" + - ".github/workflows/node.yml" # This action pull_request: branches: [ "master" ] + paths: + - "**.js" # Any JS file + - "package.json" + - "package-lock.json" + - ".github/workflows/node.yml" # This action jobs: build: