-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/vaults' into feat/vaults-develop-sync
# Conflicts: # .github/workflows/analyse.yml # .github/workflows/coverage.yml # .github/workflows/tests-integration-holesky-devnet-0.yml # .github/workflows/tests-integration-scratch.yml # package.json # yarn.lock
- Loading branch information
Showing
13 changed files
with
152 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,59 @@ | ||
name: Analysis | ||
#on: [pull_request] | ||
# | ||
#jobs: | ||
# slither: | ||
# name: Slither | ||
# runs-on: ubuntu-latest | ||
# | ||
# permissions: | ||
# contents: read | ||
# security-events: write | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# | ||
# - name: Common setup | ||
# uses: ./.github/workflows/setup | ||
# | ||
# - name: Install poetry | ||
# run: pipx install poetry | ||
# | ||
# - uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: "3.12" | ||
# cache: "poetry" | ||
# | ||
# - name: Install dependencies | ||
# run: poetry install --no-root | ||
# | ||
# - name: Versions | ||
# run: > | ||
# poetry --version && | ||
# python --version && | ||
# echo "slither $(poetry run slither --version)" && | ||
# poetry run slitherin --version | ||
# | ||
# - name: Run slither | ||
# run: > | ||
# poetry run slither . \ | ||
# --no-fail-pedantic \ | ||
# --compile-force-framework hardhat \ | ||
# --sarif results.sarif \ | ||
# --exclude pess-strange-setter,pess-arbitrary-call-calldata-tainted | ||
# | ||
# - name: Check results.sarif presence | ||
# id: results | ||
# if: always() | ||
# shell: bash | ||
# run: > | ||
# test -f results.sarif && | ||
# echo 'value=present' >> $GITHUB_OUTPUT || | ||
# echo 'value=not' >> $GITHUB_OUTPUT | ||
# | ||
# - name: Upload results.sarif file | ||
# uses: github/codeql-action/upload-sarif@v3 | ||
# if: ${{ always() && steps.results.outputs.value == 'present' }} | ||
# with: | ||
# sarif_file: results.sarif | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
slither: | ||
name: Slither | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
security-events: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Common setup | ||
uses: ./.github/workflows/setup | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
cache: "poetry" | ||
|
||
- name: Install dependencies | ||
run: poetry install --no-root | ||
|
||
- name: Versions | ||
run: > | ||
poetry --version && | ||
python --version && | ||
echo "slither $(poetry run slither --version)" && | ||
poetry run slitherin --version | ||
- name: Run slither | ||
run: > | ||
poetry run slither . \ | ||
--no-fail-pedantic \ | ||
--compile-force-framework hardhat \ | ||
--sarif results.sarif \ | ||
--exclude pess-strange-setter,pess-arbitrary-call-calldata-tainted | ||
- name: Check results.sarif presence | ||
id: results | ||
if: always() | ||
shell: bash | ||
run: > | ||
test -f results.sarif && | ||
echo 'value=present' >> $GITHUB_OUTPUT || | ||
echo 'value=not' >> $GITHUB_OUTPUT | ||
- name: Upload results.sarif file | ||
uses: github/codeql-action/upload-sarif@v3 | ||
if: ${{ always() && steps.results.outputs.value == 'present' }} | ||
with: | ||
sarif_file: results.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
name: Coverage | ||
#on: | ||
# pull_request: | ||
# push: | ||
# branches: [ master ] | ||
# | ||
#jobs: | ||
# coverage: | ||
# name: Hardhat | ||
# runs-on: ubuntu-latest | ||
# | ||
# permissions: | ||
# contents: write | ||
# issues: write | ||
# pull-requests: write | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# | ||
# - name: Common setup | ||
# uses: ./.github/workflows/setup | ||
# | ||
# # Remove the integration tests from the test suite, as they require a mainnet fork to run properly | ||
# - name: Remove integration tests | ||
# run: rm -rf test/integration | ||
# | ||
# - name: Collect coverage | ||
# run: yarn test:coverage | ||
# | ||
# - name: Produce the coverage report | ||
# uses: insightsengineering/coverage-action@v2 | ||
# with: | ||
# path: ./coverage/cobertura-coverage.xml | ||
# publish: true | ||
# threshold: 95 | ||
# diff: true | ||
# diff-branch: master | ||
# diff-storage: _core_coverage_reports | ||
# coverage-summary-title: "Hardhat Unit Tests Coverage Summary" | ||
# togglable-report: true | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
coverage: | ||
name: Hardhat | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Common setup | ||
uses: ./.github/workflows/setup | ||
|
||
# Remove the integration tests from the test suite, as they require a mainnet fork to run properly | ||
- name: Remove integration tests | ||
run: rm -rf test/integration | ||
|
||
- name: Collect coverage | ||
run: yarn test:coverage | ||
|
||
- name: Produce the coverage report | ||
uses: insightsengineering/coverage-action@v2 | ||
with: | ||
path: ./coverage/cobertura-coverage.xml | ||
publish: true | ||
threshold: 95 | ||
diff: true | ||
diff-branch: master | ||
diff-storage: _core_coverage_reports | ||
coverage-summary-title: "Hardhat Unit Tests Coverage Summary" | ||
togglable-report: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.12 | ||
22.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.