Skip to content

Commit

Permalink
chore: ci for tests and solhint
Browse files Browse the repository at this point in the history
  • Loading branch information
HrikB committed Feb 5, 2024
1 parent f2d6561 commit b9fb7e7
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,49 @@ jobs:

- name: Validate URLs
run: awesome_bot ./*.md src/**/*.sol --allow-dupe --allow-redirect --request-delay 0.4 --white-list mainnet.infura.io/v3,localhost

tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
node_version:
- 20

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
forge test -vvv --ffi
id: t

solhint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
node_version:
- 20

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run solhint
run: |
npx solhint 'src/**/*.sol'

0 comments on commit b9fb7e7

Please sign in to comment.