Skip to content

Commit

Permalink
Remove test files from codecov (#512)
Browse files Browse the repository at this point in the history
* checkin codecov stats

* change GH action

* cleanup

* remove tests from codecov

* adjust linter rules
  • Loading branch information
joaquim-verges authored Sep 28, 2023
1 parent 20df64f commit 6b6e567
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/composite-actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ runs:
- name: Install dependencies
shell: bash
run: yarn

- name: Setup lcov
shell: bash
run: |
sudo apt update
sudo apt install -y lcov
5 changes: 2 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ jobs:
uses: onbjerg/foundry-toolchain@v1
with:
version: nightly
- name: Run coverage
- name: Run coverage and tests
run: |
forge coverage --report lcov
- name: Run tests
run: |
lcov --remove lcov.info -o lcov.info 'src/test/**'
forge test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ yarn.lock
# Forge
#/lib
/out
lcov.info

#Build
.swc/
Expand Down
3 changes: 3 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"var-name-mixedcase": "error",
"func-visibility": ["error", { "ignoreConstructors": true }],
"not-rely-on-time": "off",
"no-empty-blocks": "off",
"contract-name-camelcase": "off",
"no-inline-assembly": "off",
"prettier/prettier": [
"error",
{
Expand Down

0 comments on commit 6b6e567

Please sign in to comment.