Skip to content

Commit

Permalink
trigger only on path
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Jan 31, 2025
1 parent ce3e7c7 commit 693bf29
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ on:
push:
branches:
- main
paths:
- "contracts/**"
- ".github/workflows/solidity.yml"
pull_request:
paths:
- "contracts/**"
- ".github/workflows/solidity.yml"

permissions:
contents: read
security-events: write

concurrency:
group: ci-solidity-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -36,7 +43,7 @@ jobs:
id: set-cache-key
run: echo "cache-key=ci-solidity-${{ hashFiles('**/*.sol') }}" >> "$GITHUB_OUTPUT"

- name: Install dependencies
- name: Install dendencies
run: forge soldeer update

- name: Build contracts
Expand Down Expand Up @@ -102,6 +109,7 @@ jobs:
slither:
needs: init
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- name: Restore cache
uses: actions/cache/restore@v4
Expand Down

0 comments on commit 693bf29

Please sign in to comment.