From 9b4fd9d2e07bb6675644d13354fe4523fec52c50 Mon Sep 17 00:00:00 2001 From: Guilherme Dantas Date: Fri, 13 Dec 2024 13:48:12 -0300 Subject: [PATCH] fix: setup action --- .github/{workflows => actions}/setup/action.yml | 16 +++++++--------- .github/workflows/check-code-format.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 2 +- .github/workflows/upload-artifacts.yml | 2 +- 6 files changed, 13 insertions(+), 15 deletions(-) rename .github/{workflows => actions}/setup/action.yml (65%) diff --git a/.github/workflows/setup/action.yml b/.github/actions/setup/action.yml similarity index 65% rename from .github/workflows/setup/action.yml rename to .github/actions/setup/action.yml index c24a0642..27501bd4 100644 --- a/.github/workflows/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,12 +1,10 @@ -name: Install dependencies - -on: - workflow_call: - inputs: - foundry-version: - description: 'Foundry version' - required: true - type: string +name: 'Install dependencies' +description: 'Installs pnpm, node, Node packages, and foundry' +inputs: + foundry-version: + description: 'Foundry version' + type: string + default: 'nightly' runs: using: 'composite' diff --git a/.github/workflows/check-code-format.yml b/.github/workflows/check-code-format.yml index 700fea15..7ccd4373 100644 --- a/.github/workflows/check-code-format.yml +++ b/.github/workflows/check-code-format.yml @@ -8,7 +8,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: ./.github/workflows/setup + - uses: ./.github/actions/setup with: foundry-version: nightly diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 93056138..8ae6eb6a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,7 +21,7 @@ jobs: with: submodules: recursive - - uses: ./.github/workflows/setup + - uses: ./.github/actions/setup with: foundry-version: nightly diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afb50ca6..c6a22884 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: git config user.name rollups-contracts-bot git config user.email 153998668+rollups-contracts-bot@users.noreply.github.com - - uses: ./.github/workflows/setup + - uses: ./.github/actions/setup with: foundry-version: nightly @@ -56,7 +56,7 @@ jobs: with: submodules: recursive - - uses: ./.github/workflows/setup + - uses: ./.github/actions/setup with: foundry-version: nightly diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f061b8c6..aebad727 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: with: submodules: recursive - - uses: ./.github/workflows/setup + - uses: ./.github/actions/setup with: foundry-version: nightly diff --git a/.github/workflows/upload-artifacts.yml b/.github/workflows/upload-artifacts.yml index 7641d84b..57e746b8 100644 --- a/.github/workflows/upload-artifacts.yml +++ b/.github/workflows/upload-artifacts.yml @@ -17,7 +17,7 @@ jobs: with: submodules: recursive - - uses: ./.github/workflows/setup + - uses: ./.github/actions/setup with: foundry-version: ${{ env.FOUNDRY_VERSION }}