Skip to content

Commit

Permalink
ci:jest jobs need build job
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Apr 3, 2024
1 parent 5ab21ba commit f40eb0a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/pushDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.global-cache-key }}
- name: Install dependencies
run: yarn --immutable
- name: Build packages
run: yarn build:quick
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
env:
NODE_OPTIONS: '--max_old_space_size=4096'
Expand All @@ -87,11 +87,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand All @@ -117,7 +117,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -155,11 +155,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -209,11 +209,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -268,11 +268,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -329,11 +329,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -523,11 +523,11 @@ jobs:
path: dev
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -729,11 +729,11 @@ jobs:
path: dev
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -935,11 +935,11 @@ jobs:
path: dev
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/pushNext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.global-cache-key }}
- name: Install dependencies
run: yarn --immutable
- name: Build packages
run: yarn build:quick
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
env:
NODE_OPTIONS: '--max_old_space_size=4096'
Expand All @@ -87,11 +87,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand All @@ -117,7 +117,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -155,11 +155,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -209,11 +209,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -268,11 +268,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -329,11 +329,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -523,11 +523,11 @@ jobs:
path: dev
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -729,11 +729,11 @@ jobs:
path: dev
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -935,11 +935,11 @@ jobs:
path: dev
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down Expand Up @@ -980,11 +980,11 @@ jobs:
fetch-depth: 0
- uses: actions/cache@v4
with:
path: /.yarn/cache
path: .yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: /.webiny/cached-packages
path: .webiny/cached-packages
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/wac/push.wac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const createYarnCacheSteps = (
{
uses: "actions/cache@v4",
with: {
path: [workingDirectory, ".yarn/cache"].join("/"),
path: [workingDirectory, ".yarn/cache"].filter(Boolean).join("/"),
key: "yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}"
}
}
Expand All @@ -33,7 +33,7 @@ const createBuildGlobalCacheSteps = (
{
uses: "actions/cache@v4",
with: {
path: [workingDirectory, ".webiny/cached-packages"].join("/"),
path: [workingDirectory, ".webiny/cached-packages"].filter(Boolean).join("/"),
key: "${{ needs.constants.outputs.global-cache-key }}"
}
}
Expand All @@ -48,7 +48,7 @@ const createBuildRunCacheSteps = (
{
uses: "actions/cache@v4",
with: {
path: [workingDirectory, ".webiny/cached-packages"].join("/"),
path: [workingDirectory, ".webiny/cached-packages"].filter(Boolean).join("/"),
key: "${{ needs.constants.outputs.run-cache-key }}"
}
}
Expand Down

0 comments on commit f40eb0a

Please sign in to comment.