From 7c50cd34d78030d9b9290c449f69d9fb540e2415 Mon Sep 17 00:00:00 2001 From: Aryan Prince Date: Mon, 22 Jul 2024 11:06:31 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20Refactor=20repo=20checkout?= =?UTF-8?q?=20to=20composite=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 12 ------------ tooling/github-actions/setup/action.yml | 3 +++ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d789233..3b86755 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,6 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Setup uses: ./tooling/github-actions/setup @@ -33,8 +31,6 @@ jobs: format: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Setup uses: ./tooling/github-actions/setup @@ -44,8 +40,6 @@ jobs: typecheck: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Setup uses: ./tooling/github-actions/setup @@ -57,8 +51,6 @@ jobs: timeout-minutes: 5 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Setup uses: ./tooling/github-actions/setup @@ -74,8 +66,6 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Setup uses: ./tooling/github-actions/setup @@ -94,8 +84,6 @@ jobs: permissions: pull-requests: write steps: - - uses: actions/checkout@v4 - - name: Setup uses: ./tooling/github-actions/setup diff --git a/tooling/github-actions/setup/action.yml b/tooling/github-actions/setup/action.yml index b16c0f8..660428d 100644 --- a/tooling/github-actions/setup/action.yml +++ b/tooling/github-actions/setup/action.yml @@ -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