From 8613e390eb8368540cf5f74f445acaf89f3789db Mon Sep 17 00:00:00 2001 From: Martin Kysel Date: Thu, 19 Dec 2024 13:22:23 -0500 Subject: [PATCH] Rework how we ignore changes in CI --- .github/workflows/lint.yml | 13 +++++++++---- .github/workflows/solidity.yml | 3 +-- .github/workflows/test.yml | 12 ++++++++---- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3337b154..8a2c0095 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -3,11 +3,16 @@ on: push: branches: - main - paths-ignore: - - "contracts/**" pull_request: - paths-ignore: - - "contracts/**" + paths: + - ".github/workflows/lint.yml" + - "pkg/**" + - "cmd/**" + - "dev/**" + - "go.mod" + - "go.sum" + - "tools.go" + - ".golangci.yaml" permissions: contents: read jobs: diff --git a/.github/workflows/solidity.yml b/.github/workflows/solidity.yml index cd345b9b..a1482f09 100644 --- a/.github/workflows/solidity.yml +++ b/.github/workflows/solidity.yml @@ -4,11 +4,10 @@ on: push: branches: - main - paths: - - "contracts/**" pull_request: paths: - "contracts/**" + - ".github/workflows/solidity.yml" concurrency: group: ci-solidity-${{ github.ref }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 63105688..8544c06d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,11 +3,15 @@ on: push: branches: - main - paths-ignore: - - "contracts/**" pull_request: - paths-ignore: - - "contracts/**" + paths: + - ".github/workflows/test.yml" + - "pkg/**" + - "cmd/**" + - "dev/**" + - "go.mod" + - "go.sum" + - "tools.go" jobs: test: name: Test (Node)