mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
ci: use correct fetch-depth (#22288)
* test(front): update snapshots * ci: use correct fetch-depth
This commit is contained in:
parent
d65d44102f
commit
f6faef36d1
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
@ -16,6 +16,9 @@ permissions:
|
|||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
actions: read
|
actions: read
|
||||||
|
|
||||||
|
# IMPORTANT
|
||||||
|
# Jobs using `nx affected` require nrwl/nx-set-shas, which in turn requires actions/checkout fetch-depth:0 (meaning unlimited)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
conditions:
|
conditions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -70,7 +73,6 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
- uses: nrwl/nx-set-shas@v4
|
|
||||||
- name: Monorepo install
|
- name: Monorepo install
|
||||||
uses: ./.github/actions/yarn-nm-install
|
uses: ./.github/actions/yarn-nm-install
|
||||||
- name: Run docs build
|
- name: Run docs build
|
||||||
@ -87,7 +89,6 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
- uses: nrwl/nx-set-shas@v4
|
|
||||||
- name: Monorepo install
|
- name: Monorepo install
|
||||||
uses: ./.github/actions/yarn-nm-install
|
uses: ./.github/actions/yarn-nm-install
|
||||||
- name: Run lint
|
- name: Run lint
|
||||||
@ -102,6 +103,8 @@ jobs:
|
|||||||
node: [20, 22]
|
node: [20, 22]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # needed for nx-set-shas
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
@ -123,6 +126,8 @@ jobs:
|
|||||||
node: [20, 22]
|
node: [20, 22]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # needed for nx-set-shas
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
@ -150,6 +155,8 @@ jobs:
|
|||||||
node: [20, 22]
|
node: [20, 22]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # needed for nx-set-shas
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
@ -172,6 +179,8 @@ jobs:
|
|||||||
node: [20]
|
node: [20]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # needed for nx-set-shas
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
|
|||||||
@ -226,6 +226,10 @@ exports[`Upload - Configure initial render renders and matches the snapshot 1`]
|
|||||||
color: #7b79ff;
|
color: #7b79ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c8:hover svg path {
|
||||||
|
fill: #7b79ff;
|
||||||
|
}
|
||||||
|
|
||||||
.c8:active {
|
.c8:active {
|
||||||
color: #271fe0;
|
color: #271fe0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -166,6 +166,10 @@ exports[`Header renders 1`] = `
|
|||||||
color: #7b79ff;
|
color: #7b79ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c4:hover svg path {
|
||||||
|
fill: #7b79ff;
|
||||||
|
}
|
||||||
|
|
||||||
.c4:active {
|
.c4:active {
|
||||||
color: #271fe0;
|
color: #271fe0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user