Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/stable' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Jul 2, 2024
2 parents 8f8b211 + 2363220 commit a20d2b6
Show file tree
Hide file tree
Showing 2,428 changed files with 98,273 additions and 43,220 deletions.
159 changes: 108 additions & 51 deletions .github/workflows/pullRequests.yml

Large diffs are not rendered by default.

376 changes: 221 additions & 155 deletions .github/workflows/pullRequestsCommandCypress.yml

Large diffs are not rendered by default.

536 changes: 259 additions & 277 deletions .github/workflows/pushDev.yml

Large diffs are not rendered by default.

599 changes: 293 additions & 306 deletions .github/workflows/pushNext.yml

Large diffs are not rendered by default.

24 changes: 19 additions & 5 deletions .github/workflows/pushStable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,22 @@ jobs:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
constants:
name: Create constants
runs-on: ubuntu-latest
outputs:
run-cache-key: ${{ steps.run-cache-key.outputs.run-cache-key }}
steps:
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/checkout@v4
- name: Create workflow run cache key
id: run-cache-key
run: >-
echo "run-cache-key=-${{ github.run_id }}-${{ github.run_attempt
}}-${{ vars.RANDOM_CACHE_KEY_SUFFIX }}" >> $GITHUB_OUTPUT
echo "run-cache-key=${{ github.run_id }}-${{ github.run_attempt }}-${{
vars.RANDOM_CACHE_KEY_SUFFIX }}" >> $GITHUB_OUTPUT
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
YARN_ENABLE_IMMUTABLE_INSTALLS: false
build:
name: Build
needs: constants
Expand All @@ -49,8 +56,10 @@ jobs:
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn --immutable
working-directory: ''
- name: Build packages
run: yarn build:quick
working-directory: ''
- uses: actions/cache@v4
with:
path: .webiny/cached-packages
Expand All @@ -61,6 +70,7 @@ jobs:
npmReleaseBeta:
needs:
- constants
- build
name: NPM release ("beta" tag)
env:
NODE_OPTIONS: '--max_old_space_size=4096'
Expand All @@ -85,8 +95,10 @@ jobs:
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
working-directory: ''
- name: Build packages
run: yarn build
run: yarn build:quick
working-directory: ''
- name: Create ".npmrc" file in the project root
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
- name: Set git email
Expand Down Expand Up @@ -126,8 +138,10 @@ jobs:
key: ${{ needs.constants.outputs.run-cache-key }}
- name: Install dependencies
run: yarn --immutable
working-directory: ''
- name: Build packages
run: yarn build
run: yarn build:quick
working-directory: ''
- name: Create ".npmrc" file in the project root
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
- name: Set git email
Expand Down
83 changes: 0 additions & 83 deletions .github/workflows/rebuildCache.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/rebuildGlobalCacheDev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This file was automatically generated by github-actions-wac.
# DO NOT MODIFY IT BY HAND. Instead, modify the source *.wac.ts file(s)
# and run "github-actions-wac build" (or "ghawac build") to regenerate this file.
# For more information, run "github-actions-wac --help".
name: Rebuild Global Cache ("dev" branch)
'on':
workflow_dispatch: {}
schedule:
- cron: 0 4 * * *
jobs:
constants:
name: Create constants
outputs:
global-cache-key: ${{ steps.global-cache-key.outputs.global-cache-key }}
steps:
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Create global cache key
id: global-cache-key
run: >-
echo "global-cache-key=dev-${{ runner.os }}-$(/bin/date -u
"+%m%d")-${{ vars.RANDOM_CACHE_KEY_SUFFIX }}" >> $GITHUB_OUTPUT
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
YARN_ENABLE_IMMUTABLE_INSTALLS: false
cacheDependenciesPackages:
name: Cache dependencies and packages
needs: constants
steps:
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: dev
ref: dev
- uses: actions/cache@v4
with:
path: dev/.yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: dev/.webiny/cached-packages
key: ${{ needs.constants.outputs.global-cache-key }}
- name: Install dependencies
run: yarn --immutable
working-directory: dev
- name: Build packages
run: yarn build:quick
working-directory: dev
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
YARN_ENABLE_IMMUTABLE_INSTALLS: false
56 changes: 56 additions & 0 deletions .github/workflows/rebuildGlobalCacheNext.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# This file was automatically generated by github-actions-wac.
# DO NOT MODIFY IT BY HAND. Instead, modify the source *.wac.ts file(s)
# and run "github-actions-wac build" (or "ghawac build") to regenerate this file.
# For more information, run "github-actions-wac --help".
name: Rebuild Global Cache ("next" branch)
'on':
workflow_dispatch: {}
schedule:
- cron: 0 4 * * *
jobs:
constants:
name: Create constants
outputs:
global-cache-key: ${{ steps.global-cache-key.outputs.global-cache-key }}
steps:
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Create global cache key
id: global-cache-key
run: >-
echo "global-cache-key=next-${{ runner.os }}-$(/bin/date -u
"+%m%d")-${{ vars.RANDOM_CACHE_KEY_SUFFIX }}" >> $GITHUB_OUTPUT
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
YARN_ENABLE_IMMUTABLE_INSTALLS: false
cacheDependenciesPackages:
name: Cache dependencies and packages
needs: constants
steps:
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/checkout@v4
with:
path: next
ref: next
- uses: actions/cache@v4
with:
path: next/.yarn/cache
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- uses: actions/cache@v4
with:
path: next/.webiny/cached-packages
key: ${{ needs.constants.outputs.global-cache-key }}
- name: Install dependencies
run: yarn --immutable
working-directory: next
- name: Build packages
run: yarn build:quick
working-directory: next
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
YARN_ENABLE_IMMUTABLE_INSTALLS: false
77 changes: 0 additions & 77 deletions .github/workflows/wac/jobs/createJestTestsJob.ts

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/wac/jobs/createValidateWorkflowsJob.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { createJob } from "./createJob";
import { NormalJob } from "github-actions-wac";

export const createValidateWorkflowsJob = () =>
type CreateValidateWorkflowsJobParams = Partial<NormalJob>;

export const createValidateWorkflowsJob = (params: CreateValidateWorkflowsJobParams = {}) =>
createJob({
name: "Validate workflows",
steps: [
Expand All @@ -12,5 +15,6 @@ export const createValidateWorkflowsJob = () =>
name: "Validate",
run: "npx github-actions-wac validate"
}
]
],
...params
});
1 change: 0 additions & 1 deletion .github/workflows/wac/jobs/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./createJob";
export * from "./createValidateWorkflowsJob";
export * from "./createJestTestsJob";
Loading

0 comments on commit a20d2b6

Please sign in to comment.