Updating GitHub workflows and husky (#186) #433
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
on: [push] | |
name: ci | |
jobs: | |
benchmark: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-dependencies | |
- run: pnpm build | |
- run: pnpm benchmark | |
lint-ts: | |
name: Typescript lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-dependencies | |
- run: pnpm lint:ts | |
lint-sol: | |
name: Solidity lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-dependencies | |
- run: pnpm lint:sol | |
test: | |
name: Test contracts | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-dependencies | |
- run: pnpm build | |
- run: pnpm test | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-dependencies | |
- run: pnpm coverage || true | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
huff-tests: | |
name: Huff tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Huff | |
uses: huff-language/huff-toolchain@v2 | |
with: | |
version: nightly | |
- name: Run tests | |
run: bash ./run_huff_tests.sh | |
foundry-tests: | |
name: Foundry tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install Huff | |
uses: huff-language/huff-toolchain@v2 | |
with: | |
version: nightly | |
- name: Run tests | |
run: FOUNDRY_FUZZ_RUNS=2048 MAX_ARRAY_LEN=32 forge test -vvv | |
foundry-tests-long-arrays: | |
name: Foundry tests (long arrays) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install Huff | |
uses: huff-language/huff-toolchain@v2 | |
with: | |
version: nightly | |
- name: Run tests | |
run: FOUNDRY_FUZZ_RUNS=1024 forge test -vvv |