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

add if statement to gas-tests #7

Merged
merged 3 commits into from
May 29, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/gas-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
fi

- name: Comment on pull request
if: env.exists == 'true'
if: github.event_name == 'pull_request' && env.exists == 'true'
uses: thollander/actions-comment-pull-request@v2
with:
filePath: gasReport.md
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ on:

jobs:
setup:
uses: ./.github/workflows/setup.yml
uses: The-Poolz/solidity-workflows/.github/workflows/setup.yml
```

### 3. Coverage Test
Expand All @@ -86,11 +86,11 @@ on:

jobs:
setup:
uses: ./.github/workflows/setup.yml
uses: The-Poolz/solidity-workflows/.github/workflows/setup.yml

coverage-test:
needs: setup
uses: ./.github/workflows/coverage-test.yml
uses: The-Poolz/solidity-workflows/.github/workflows/coverage-test.yml
```

### 4. Gas Test
Expand All @@ -115,11 +115,11 @@ on:

jobs:
setup:
uses: ./.github/workflows/setup.yml
uses: .The-Poolz/solidity-workflows/.github/workflows/setup.yml

test:
needs: setup
uses: ./.github/workflows/gas-test.yml
uses: The-Poolz/solidity-workflows/.github/workflows/gas-test.yml
```

### 5. Slither Test
Expand All @@ -146,11 +146,11 @@ on:

jobs:
setup:
uses: ./.github/workflows/setup.yml
uses: The-Poolz/solidity-workflows/.github/workflows/setup.yml

slither:
needs: setup
uses: ./.github/workflows/slither-test.yml
uses: The-Poolz/solidity-workflows/.github/workflows/slither-test.yml
```

### 6. Publish on Release
Expand All @@ -176,7 +176,7 @@ on:

jobs:
release:
uses: ./.github/workflows/release.yml
uses: The-Poolz/solidity-workflows/.github/workflows/release.yml
```

## License
Expand Down