Skip to content

Commit 3808b5d

Browse files
committed
Constrain CI triggers
1 parent 0dc1dc9 commit 3808b5d

File tree

4 files changed

+50
-14
lines changed

4 files changed

+50
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- master
6+
paths:
7+
- "**.md"
68
workflow_dispatch:
79

810
jobs:

.github/workflows/echidna.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
name: Echidna
1+
name: Run Echidna tests
22

33
on:
44
push:
5-
paths-ignore:
6-
- "**.md"
7-
- "**.rs"
8-
- "**.py"
5+
paths:
6+
- "program-analysis/echidna/**/*.sol"
97
branches:
108
- master
11-
- dev
129
pull_request:
10+
paths:
11+
- "program-analysis/echidna/**/*.sol"
1312
schedule:
1413
# run CI every day even if no PRs/merges occur
1514
- cron: "0 12 * * *"

.github/workflows/manticore.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run Manticore tests
2+
3+
on:
4+
push:
5+
paths:
6+
- "program-analysis/manticore/**/*.py"
7+
branches:
8+
- master
9+
pull_request:
10+
paths:
11+
- "program-analysis/manticore/**/*.py"
12+
schedule:
13+
# run CI every day even if no PRs/merges occur
14+
- cron: "0 12 * * *"
15+
16+
jobs:
17+
tests:
18+
runs-on: ubuntu-22.04
19+
strategy:
20+
fail-fast: false
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Set up Python 3.8
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: 3.8
27+
- name: Install dependencies
28+
run: |
29+
pip install solc-select
30+
solc-select install 0.5.11
31+
solc-select use 0.5.11
32+
- name: Run Tests
33+
env:
34+
TEST_TYPE: manticore
35+
run: |
36+
bash program-analysis/manticore/scripts/gh_action_test.sh
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
name: CI
1+
name: Run Slither tests
22

33
on:
44
push:
5-
paths-ignore:
6-
- "**.md"
5+
paths:
6+
- "program-analysis/slither/**/*.py"
77
branches:
88
- master
9-
- dev
109
pull_request:
10+
paths:
11+
- "program-analysis/slither/**/*.py"
1112
schedule:
1213
# run CI every day even if no PRs/merges occur
1314
- cron: "0 12 * * *"
@@ -17,8 +18,6 @@ jobs:
1718
runs-on: ubuntu-22.04
1819
strategy:
1920
fail-fast: false
20-
matrix:
21-
type: ["slither", "manticore"]
2221
steps:
2322
- uses: actions/checkout@v3
2423
- name: Set up Python 3.8
@@ -32,6 +31,6 @@ jobs:
3231
solc-select use 0.5.11
3332
- name: Run Tests
3433
env:
35-
TEST_TYPE: ${{ matrix.type }}
34+
TEST_TYPE: slither
3635
run: |
37-
bash program-analysis/${TEST_TYPE}/scripts/gh_action_test.sh
36+
bash program-analysis/slither/scripts/gh_action_test.sh

0 commit comments

Comments
 (0)