-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
353f3b7
commit 90765dc
Showing
57 changed files
with
713 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Install, build & cache' | ||
description: 'Installs dependencies, builds all packages, and saves the cache of Nx' | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: ./.github/actions/setup | ||
with: | ||
load-cache: 'false' | ||
- uses: actions/cache@v3 | ||
id: nx-cache | ||
with: | ||
path: node_modules/.cache/nx | ||
key: nx-${{ github.sha }} | ||
- if: steps.nx-cache.outputs.cache-hit != 'true' | ||
run: npm run build | ||
shell: bash |
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
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
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
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,51 +1,43 @@ | ||
name: 'Setup & build' | ||
description: 'Setup node, install dependencies & build' | ||
inputs: | ||
load-cache: | ||
description: "Whether to restore the Nx cache." | ||
required: false | ||
default: 'true' | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- name: Ensure Nx cache can be shared between different CI environments # Source: https://nx.dev/recipes/troubleshooting/unknown-local-cache | ||
run: echo "NX_REJECT_UNKNOWN_LOCAL_CACHE=0" >> $GITHUB_ENV | ||
shell: bash | ||
- name: Install npm | ||
run: npm i -g npm@9 | ||
shell: bash | ||
- uses: actions/cache@v3 | ||
id: build-cache | ||
id: npm-cache | ||
with: | ||
path: | | ||
packages/bueno/dist | ||
packages/headless/dist | ||
packages/auth/dist | ||
packages/atomic/dist | ||
packages/atomic/docs | ||
packages/atomic/loader | ||
packages/atomic/www | ||
packages/atomic/src/components/search/atomic-search-interface/lang/ | ||
packages/atomic/src/external-builds/ | ||
packages/atomic/src/generated/ | ||
packages/quantic/docs/out | ||
packages/atomic-react/dist | ||
packages/atomic-hosted-page/dist | ||
packages/atomic-angular/projects/atomic-angular/dist | ||
packages/samples/headless-react | ||
packages/samples/iife/www/cdn | ||
packages/samples/headless-ssr/.next | ||
packages/quantic/force-app/main/default/staticresources/coveoheadless | ||
packages/quantic/force-app/main/default/staticresources/coveobueno | ||
utils/atomic-storybook/storybook-static | ||
!node_modules | ||
!**/node_modules | ||
key: ${{ github.sha }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('**/package-lock.json') }} | ||
**/node_modules/ | ||
!node_modules/.cache/nx/ | ||
key: npm-${{ hashFiles('package-lock.json') }}-${{ hashFiles('utils/atomic-storybook/package-lock.json') }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/Cypress | ||
key: cy-${{ hashFiles('**/package-lock.json') }} | ||
- run: npm ci | ||
key: cy-${{ hashFiles('package-lock.json') }}-${{ hashFiles('utils/atomic-storybook/package-lock.json') }} | ||
- if: inputs.load-cache == 'true' | ||
uses: actions/cache/restore@v3 | ||
id: nx-cache | ||
with: | ||
path: node_modules/.cache/nx | ||
key: nx-${{ github.sha }} | ||
fail-on-cache-miss: true | ||
- if: steps.npm-cache.outputs.cache-hit != 'true' | ||
run: npm ci | ||
shell: bash | ||
- if: steps.build-cache.outputs.cache-hit != 'true' | ||
- if: steps.nx-cache.outputs.cache-hit != 'true' | ||
run: npm run build | ||
shell: bash |
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
Oops, something went wrong.