From d9e5eb9f8551806942d6db3a55e4365180bc3795 Mon Sep 17 00:00:00 2001 From: cedoor Date: Fri, 10 May 2024 12:14:58 +0100 Subject: [PATCH] ci: add checks for actual changes on circuits --- .github/workflows/production.yml | 9 +++++++++ .github/workflows/pull-requests.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 45dae4d..c56276c 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -32,5 +32,14 @@ jobs: - name: Install dependencies run: yarn + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v44 + with: + files_yaml: | + circuits: + - packages/**/*.{circom,json,ts} + + - if: steps.changed-files.outputs.circuits_any_changed == 'true' - name: Test circuits run: yarn test diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index 56051fc..120c4d2 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -34,5 +34,14 @@ jobs: - name: Install dependencies run: yarn + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v44 + with: + files_yaml: | + circuits: + - packages/**/*.{circom,json,ts} + + - if: steps.changed-files.outputs.circuits_any_changed == 'true' - name: Test circuits run: yarn test