Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bxmmm1 committed Jan 10, 2024
1 parent 021af0e commit 0ab5db6
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI
on:
push:
branches:
- master
pull_request:

env:
FOUNDRY_PROFILE: ci

jobs:
# tests:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1

# - name: Install deps
# run: forge install

# - name: Run tests
# run: forge test -vvv --match-path './test/unit/*'

# # - name: Check gas snapshots
# # run: forge snapshot

slither:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: crytic/[email protected]
with:
node-version: 16

solhint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- name: Install solhint
run: npm i -g solhint
- name: Run solhint
run: solhint 'src/*.sol'

codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run CodeSpell
uses: codespell-project/[email protected]
with:
check_hidden: true
check_filenames: true
skip: package-lock.json,*.pdf,./.git

0 comments on commit 0ab5db6

Please sign in to comment.