Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constrain CI triggers #266

Merged
merged 4 commits into from
Apr 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
branches:
- master
ignore-paths:
- "**.rs"
- "**.py"
- "**.sol"
workflow_dispatch:

jobs:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/echidna.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Echidna
name: Run Echidna tests

on:
push:
paths-ignore:
- "**.md"
- "**.rs"
- "**.py"
paths:
- ".github/workflows/echidna.yml"
- "program-analysis/echidna/**/*.sol"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add the echidna yaml configs, and the workflow yaml file itself?

- "program-analysis/echidna/**/*.yml"
branches:
- master
- dev
pull_request:
paths:
- ".github/workflows/echidna.yml"
- "program-analysis/echidna/**/*.sol"
- "program-analysis/echidna/**/*.yml"
schedule:
# run CI every day even if no PRs/merges occur
- cron: "0 12 * * *"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/lint_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ on:
push:
branches:
- master
paths:
- ".github/workflows/lint_links.yml"
- "**.md"
pull_request:
paths:
- ".github/workflows/lint_links.yml"
- "**.md"
schedule:
# run CI at 09:00, on day 1 of the month even if no PRs/merges occur
- cron: "0 9 1 * *"
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/manticore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run Manticore tests

on:
push:
paths:
- ".github/workflows/manticore.yml"
- "program-analysis/manticore/**/*.py"
branches:
- master
pull_request:
paths:
- ".github/workflows/manticore.yml"
- "program-analysis/manticore/**/*.py"
schedule:
# run CI every day even if no PRs/merges occur
- cron: "0 12 * * *"

jobs:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install solc-select
solc-select install 0.5.11
solc-select use 0.5.11
- name: Run Tests
run: |
bash program-analysis/manticore/scripts/gh_action_test.sh
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml → .github/workflows/slither.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: CI
name: Run Slither tests

on:
push:
paths-ignore:
- "**.md"
paths:
- ".github/workflows/slither.yml"
- "program-analysis/slither/**/*.py"
branches:
- master
- dev
pull_request:
paths:
- ".github/workflows/slither.yml"
- "program-analysis/slither/**/*.py"
schedule:
# run CI every day even if no PRs/merges occur
- cron: "0 12 * * *"
Expand All @@ -17,8 +20,6 @@ jobs:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
type: ["slither", "manticore"]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
Expand All @@ -31,7 +32,5 @@ jobs:
solc-select install 0.5.11
solc-select use 0.5.11
- name: Run Tests
env:
TEST_TYPE: ${{ matrix.type }}
run: |
bash program-analysis/${TEST_TYPE}/scripts/gh_action_test.sh
bash program-analysis/slither/scripts/gh_action_test.sh