Skip to content

Commit

Permalink
👷 ci: Refactor repo checkout to composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanprince committed Jul 22, 2024
1 parent 6f9ef75 commit 7c50cd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github-actions/setup

Expand All @@ -33,8 +31,6 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github-actions/setup

Expand All @@ -44,8 +40,6 @@ jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github-actions/setup

Expand All @@ -57,8 +51,6 @@ jobs:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github-actions/setup

Expand All @@ -74,8 +66,6 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github-actions/setup

Expand All @@ -94,8 +84,6 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github-actions/setup

Expand Down
3 changes: 3 additions & 0 deletions tooling/github-actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ runs:
using: composite
steps:
- name: Checkout repository into runner
uses: actions/checkout@v2

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Setup Node.js environment with pnpm cache
Expand Down

0 comments on commit 7c50cd3

Please sign in to comment.