-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Fixing-standard-object-records
- Loading branch information
Showing
1,599 changed files
with
38,647 additions
and
15,510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Restore cache | ||
inputs: | ||
key: | ||
required: true | ||
description: Prefix to the cache key | ||
additional-paths: | ||
required: false | ||
outputs: | ||
cache-primary-key: | ||
description: actions/cache/restore cache-primary-key outputs proxy | ||
value: ${{ steps.restore-cache.outputs.cache-primary-key }} | ||
cache-hit: | ||
description: String bool indicating whether cache has been directly or indirectly hit | ||
value: ${{ steps.restore-cache.outputs.cache-hit == 'true' || steps.restore-cache.outputs.cache-matched-key != '' }} | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Cache primary key builder | ||
id: cache-primary-key-builder | ||
shell: bash | ||
run: | | ||
echo "CACHE_PRIMARY_KEY_PREFIX=${{ inputs.key }}-${{ github.ref_name }}" >> "${GITHUB_OUTPUT}" | ||
- name: Restore cache | ||
uses: actions/cache/restore@v4 | ||
id: restore-cache | ||
with: | ||
key: ${{ steps.cache-primary-key-builder.outputs.CACHE_PRIMARY_KEY_PREFIX }}-${{ github.sha }} | ||
restore-keys: ${{ steps.cache-primary-key-builder.outputs.CACHE_PRIMARY_KEY_PREFIX }}- | ||
path: | | ||
.cache | ||
.nx/cache | ||
node_modules/.cache | ||
packages/*/node_modules/.cache | ||
${{ inputs.additional-paths }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Save cache | ||
inputs: | ||
key: | ||
required: true | ||
description: Primary key to the cache, should be retrieved from `cache-restore` composite action outputs. | ||
additional-paths: | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Save cache | ||
uses: actions/cache/save@v4 | ||
with: | ||
key: ${{ inputs.key }} | ||
path: | | ||
.cache | ||
.nx/cache | ||
node_modules/.cache | ||
packages/*/node_modules/.cache | ||
${{ inputs.additional-paths }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,43 @@ | ||
name: Yarn Install | ||
inputs: | ||
node-version: | ||
required: false | ||
default: '18' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache primary key builder | ||
id: globals | ||
shell: bash | ||
run: | | ||
echo "ACTION_SHELL=bash" >> "${GITHUB_OUTPUT}" | ||
echo "CACHE_KEY_PREFIX=node_modules-cache-node-${{ inputs.node-version }}-${{ hashFiles('yarn.lock') }}" >> "${GITHUB_OUTPUT}" | ||
echo 'PATH_TO_CACHE<<EOF' >> $GITHUB_OUTPUT | ||
echo "node_modules" >> $GITHUB_OUTPUT | ||
echo "packages/*/node_modules" >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
- name: Setup Node.js and get yarn cache | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "18" | ||
cache: yarn | ||
- name: Cache node modules | ||
id: node-modules-cache | ||
uses: actions/cache@v3 | ||
node-version: ${{ inputs.node-version }} | ||
- name: Restore node_modules | ||
id: cache-node-modules | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: | | ||
node_modules | ||
packages/*/node_modules | ||
key: root-node_modules-${{ hashFiles('yarn.lock') }} | ||
restore-keys: root-node_modules- | ||
key: ${{ steps.globals.outputs.CACHE_KEY_PREFIX }}-${{github.sha}} | ||
restore-keys: ${{ steps.globals.outputs.CACHE_KEY_PREFIX }}- | ||
path: ${{ steps.globals.outputs.PATH_TO_CACHE }} | ||
- name: Install Dependencies | ||
shell: bash | ||
run: yarn --immutable --check-cache | ||
if: steps.node-modules-cache.outputs.cache-hit != 'true' | ||
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' && steps.cache-node-modules.outputs.cache-matched-key == '' }} | ||
shell: ${{ steps.globals.outputs.ACTION_SHELL }} | ||
run: | | ||
yarn config set enableHardenedMode true | ||
yarn --immutable --check-cache | ||
- name: Save cache | ||
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' && steps.cache-node-modules.outputs.cache-matched-key == '' }} | ||
uses: actions/cache/save@v4 | ||
with: | ||
key: ${{ steps.cache-node-modules.outputs.cache-primary-key }} | ||
path: ${{ steps.globals.outputs.PATH_TO_CACHE }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Changed files reusable workflow | ||
on: | ||
workflow_call: | ||
inputs: | ||
files: | ||
required: true | ||
type: string | ||
outputs: | ||
any_changed: | ||
value: ${{ jobs.changed-files.outputs.any_changed }} | ||
|
||
jobs: | ||
changed-files: | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
outputs: | ||
any_changed: ${{ steps.changed-files.outputs.any_changed }} | ||
steps: | ||
- name: Fetch custom Github Actions and base branch history | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check for changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: ${{ inputs.files }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.