From 41a9904932fc8da301620012003c6eae57965f1d Mon Sep 17 00:00:00 2001 From: sugar Date: Sun, 19 Jan 2025 19:43:34 +0100 Subject: [PATCH] avoid cloning entire repo for actions/checkout `fetch-depth: 0` is saying to fetch all commits, which we don't really need test for testing a single commit --- .forgejo/workflows/api-misskey-js.yml | 1 - .forgejo/workflows/check-misskey-js-version.yml | 1 - .forgejo/workflows/lint.yml | 3 --- .forgejo/workflows/test-backend.yml | 2 -- .forgejo/workflows/test-frontend.yml | 1 - .forgejo/workflows/test-misskey-js.yml | 1 - .forgejo/workflows/test-production.yml | 1 - .forgejo/workflows/validate-api-json.yml | 1 - 8 files changed, 11 deletions(-) diff --git a/.forgejo/workflows/api-misskey-js.yml b/.forgejo/workflows/api-misskey-js.yml index 0dcd3d889..f366522a1 100644 --- a/.forgejo/workflows/api-misskey-js.yml +++ b/.forgejo/workflows/api-misskey-js.yml @@ -17,7 +17,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - name: Install pnpm diff --git a/.forgejo/workflows/check-misskey-js-version.yml b/.forgejo/workflows/check-misskey-js-version.yml index 26c4b654b..a278b22b5 100644 --- a/.forgejo/workflows/check-misskey-js-version.yml +++ b/.forgejo/workflows/check-misskey-js-version.yml @@ -21,7 +21,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - name: Check version run: | diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml index 5aea45df0..07cbc8394 100644 --- a/.forgejo/workflows/lint.yml +++ b/.forgejo/workflows/lint.yml @@ -24,7 +24,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - uses: pnpm/action-setup@v4.0.0 with: @@ -49,7 +48,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - uses: pnpm/action-setup@v4.0.0 with: @@ -73,7 +71,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - uses: pnpm/action-setup@v4.0.0 with: diff --git a/.forgejo/workflows/test-backend.yml b/.forgejo/workflows/test-backend.yml index cc5ae6d33..bc03d6ead 100644 --- a/.forgejo/workflows/test-backend.yml +++ b/.forgejo/workflows/test-backend.yml @@ -44,7 +44,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - name: Install pnpm uses: pnpm/action-setup@v4.0.0 @@ -96,7 +95,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - name: Install pnpm uses: pnpm/action-setup@v4.0.0 diff --git a/.forgejo/workflows/test-frontend.yml b/.forgejo/workflows/test-frontend.yml index d7baf4b32..481c5f666 100644 --- a/.forgejo/workflows/test-frontend.yml +++ b/.forgejo/workflows/test-frontend.yml @@ -32,7 +32,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - name: Install pnpm uses: pnpm/action-setup@v4.0.0 diff --git a/.forgejo/workflows/test-misskey-js.yml b/.forgejo/workflows/test-misskey-js.yml index db90b80c0..33b4cde77 100644 --- a/.forgejo/workflows/test-misskey-js.yml +++ b/.forgejo/workflows/test-misskey-js.yml @@ -27,7 +27,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - name: Install pnpm diff --git a/.forgejo/workflows/test-production.yml b/.forgejo/workflows/test-production.yml index 56c075577..d1f2f0312 100644 --- a/.forgejo/workflows/test-production.yml +++ b/.forgejo/workflows/test-production.yml @@ -20,7 +20,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - name: Install pnpm uses: pnpm/action-setup@v4.0.0 diff --git a/.forgejo/workflows/validate-api-json.yml b/.forgejo/workflows/validate-api-json.yml index f72371d52..4ae535b44 100644 --- a/.forgejo/workflows/validate-api-json.yml +++ b/.forgejo/workflows/validate-api-json.yml @@ -21,7 +21,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 submodules: true - name: Install pnpm uses: pnpm/action-setup@v4.0.0