Skip to content

Commit

Permalink
fix: github workflow forge build
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdubey521 committed Oct 16, 2023
1 parent c2ed21c commit 3579f90
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/push_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout
uses: 'actions/checkout@master'
uses: "actions/checkout@master"
- name: Set Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -20,8 +20,7 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile && yarn build
- name: Lint sources
run:
yarn run lint
run: yarn run lint

unit_test:
name: Unit tests
Expand All @@ -32,34 +31,39 @@ jobs:

steps:
- name: Checkout
uses: 'actions/checkout@master'
uses: "actions/checkout@master"

- name: Set Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Create a fake .secret file
run: echo "primary twist rack vendor diagram image used route theme frown either will" > .secret

- name: Install dependencies
run: yarn install --frozen-lockfile && yarn build

- name: Run Hardhat Tests
run: yarn test

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

- name: Configure SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

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

- name: Install dependencies
run: yarn install --frozen-lockfile && yarn build

- name: Run Hardhat Tests
run: yarn test

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

0 comments on commit 3579f90

Please sign in to comment.