Skip to content

Commit

Permalink
chore: remove checkout step from action
Browse files Browse the repository at this point in the history
  • Loading branch information
LuudJanssen committed Oct 28, 2024
1 parent 9ea9bc1 commit 1d9f0f0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
name: Prepare
description: Checks out the code, sets up Node.js and PNPM and installs dependencies
description: Sets up Node.js and PNPM and installs dependencies

runs:
using: "composite"

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare
uses: ./.github/actions/prepare

Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare
uses: ./.github/actions/prepare

Expand All @@ -26,6 +31,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare
uses: ./.github/actions/prepare

Expand All @@ -37,6 +47,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare
uses: ./.github/actions/prepare

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Prepare
uses: ./.github/actions/prepare

Expand Down

0 comments on commit 1d9f0f0

Please sign in to comment.