Skip to content

Commit

Permalink
chore: update runner for hardhat
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis committed Sep 11, 2024
1 parent af662bd commit 32a877a
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,23 @@ on:
pull_request:
workflow_dispatch:

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
name: Hardhat project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Use Node.js
uses: actions/setup-node@v3
with:
version: nightly

- name: Show Forge version
run: |
forge --version
node-version: '18.x'

- name: Run Forge fmt
run: |
forge fmt --check
id: fmt
- name: Install dependencies
run: npm ci

- name: Run Forge build
run: |
forge build --sizes
id: build
- name: Compile contracts
run: npx hardhat compile

- name: Run Forge tests
run: |
forge test -vvv
id: test
- name: Run tests
run: npx hardhat test

0 comments on commit 32a877a

Please sign in to comment.