Skip to content

Commit

Permalink
Trying reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oveddan committed Aug 11, 2023
1 parent e22ec8d commit d4b4e3b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/anvil_foundry_setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Reusable foundry anvil setup

on: workflow_call

jobs:
setup_node_foundry:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: "yarn"

- name: Install project dependencies
run: yarn

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

}
20 changes: 2 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,10 @@ jobs:
strategy:
fail-fast: true

name: Foundry project
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: "yarn"

- name: Install project dependencies
run: yarn

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- uses: ./.github/workflows/anvil_foundry_setup.yml

- name: Run Forge tests
run: |
Expand Down

0 comments on commit d4b4e3b

Please sign in to comment.