Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ updates:
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
allow:
- dependency-name: "@adobe/gatsby-theme-aio"
versioning-strategy: increase
open-pull-requests-limit: 25
labels:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/linters/.yaml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ rules:
key-duplicates: enable
line-length:
level: warning
max: 200
max: 100
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: true
new-line-at-end-of-file: disable
Expand Down
6 changes: 6 additions & 0 deletions .github/super-linter.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IGNORE_GITIGNORED_FILES=true
VALIDATE_GITLEAKS=true
VALIDATE_MARKDOWN=true
MARKDOWN_CONFIG_FILE=.markdownlint.yml
VALIDATE_YAML=true
VALIDATE_JSON=true
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,11 @@ jobs:
GATSBY_ALGOLIA_API_KEY: ${{ secrets.AIO_ALGOLIA_API_KEY }}
GATSBY_ALGOLIA_INDEX_ALL_SRC: ${{ secrets.AIO_ALGOLIA_INDEX_ALL_SRC }}
GATSBY_ALGOLIA_SEARCH_INDEX: ${{ secrets.AIO_ALGOLIA_SEARCH_INDEX }}
GATSBY_ALGOLIA_INDEX_ENV_PREFIX: ${{ secrets.AIO_ALGOLIA_INDEX_ENV_PREFIX }}
GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }}
GATSBY_DC_LINKED_IN: ${{ secrets.DC_LINKED_IN }}

GATSBY_DESKTOP_SCREEN_WIDTH: ${{ secrets.DESKTOP_SCREEN_WIDTH }}
GATSBY_DESKTOP_FOOTER_SCREEN_WIDTH_MAX: ${{ secrets.DESKTOP_FOOTER_SCREEN_WIDTH_MAX }}
- name: Deploy
uses: icaraps/static-website-deploy@master
with:
Expand Down Expand Up @@ -249,9 +251,11 @@ jobs:
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME || github.event.repository.name }}
GATSBY_ALGOLIA_INDEX_ALL_SRC: ${{ secrets.AIO_ALGOLIA_INDEX_ALL_SRC }}
GATSBY_ALGOLIA_SEARCH_INDEX: ${{ secrets.AIO_ALGOLIA_SEARCH_INDEX }}
GATSBY_ALGOLIA_INDEX_ENV_PREFIX: ${{ secrets.AIO_ALGOLIA_INDEX_ENV_PREFIX }}
GATSBY_FEDS_PRIVACY_ID: ${{ secrets.AIO_FEDS_PRIVACY_ID }}
GATSBY_DC_LINKED_IN: ${{ secrets.DC_LINKED_IN }}

GATSBY_DESKTOP_SCREEN_WIDTH: ${{ secrets.DESKTOP_SCREEN_WIDTH }}
GATSBY_DESKTOP_FOOTER_SCREEN_WIDTH_MAX: ${{ secrets.DESKTOP_FOOTER_SCREEN_WIDTH_MAX }}
- name: Deploy
uses: icaraps/static-website-deploy@master
with:
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Github Pages
on:
push:
Expand All @@ -7,31 +8,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: NPM Install
uses: actions/checkout@v3
- name: Yarn Install
uses: bahmutov/npm-install@v1
- name: Build
run: |
npm run build
yarn build
env:
PREFIX_PATHS: true # equivalent to --prefix-paths flag for 'gatsby build'
PREFIX_PATHS: true # works like --prefix-paths flag for 'gatsby build'
PATH_PREFIX: ${{ github.event.repository.name }}
ADOBE_LAUNCH_SRC: ${{ secrets.AIO_ADOBE_LAUNCH_SRC }}
ADOBE_LAUNCH_SRC_INCLUDE_IN_DEVELOPMENT: ${{ secrets.ADOBE_LAUNCH_SRC_INCLUDE_IN_DEVELOPMENT }}
REPO_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.event.repository.owner.login }}
REPO_NAME: ${{ github.event.repository.name }}
REPO_BRANCH: ${{ steps.vars.outputs.BRANCH_SHORT_REF }}
REPO_BRANCH: ${{ github.ref_name }}
GOOGLE_OAUTH_CLIENT_ID: ${{ secrets.GOOGLE_OAUTH_CLIENT_ID }}
GOOGLE_OAUTH_CLIENT_SECRET: ${{ secrets.GOOGLE_OAUTH_CLIENT_SECRET }}
GOOGLE_DOCS_TOKEN: ${{ secrets.GOOGLE_DOCS_TOKEN }}
GOOGLE_DOCS_FOLDER_ID: ${{ secrets.GOOGLE_DOCS_FOLDER_ID }}
- name: Deploy to GH Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: public # The folder the action should deploy.
clean: true # Automatically remove deleted files from deploy branch
- name: GH Pages URL
id: gh-pages-url
run: |
echo "View GH-Pages: $(https://adobedocs.github.io/${{ github.event.repository.name }})"
58 changes: 40 additions & 18 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
## Pull request testing ##
###########################
###########################
name: Test a pull request
name: Latest Pull Request

#
# Documentation:
# - Workflow syntax: https://help.github.com/en/articles/workflow-syntax-for-github-actions
# - Workflow: https://help.github.com/en/articles/workflow-syntax-for-github-actions
# - SuperLinter: https://github.com/github/super-linter
# - Markdown linter: https://github.com/DavidAnson/markdownlint
# - Link validation: https://github.com/remarkjs/remark-validate-links

######################################################
# Start the job on a pull request to the main branch #
Expand All @@ -23,8 +23,7 @@ on:
# Set the Job #
###############
jobs:
lint:
name: Lint Code Base
validate:
# Set the agent to run on
runs-on: ubuntu-latest

Expand All @@ -41,27 +40,50 @@ jobs:
# Full git history is needed to get a proper list of changed files
# within `super-linter`
fetch-depth: 0
- run: cat ".github/super-linter.env" >> "$GITHUB_ENV"

################################
# Run Linter against code base #
# Run Linters against code base #
################################
- name: Lint Code Base
#
# Use full version number to avoid cases when a next
# released version is buggy
#
# About slim image: https://github.com/github/super-linter#slim-image
uses: github/super-linter/slim@v4.9.2
uses: github/super-linter/slim@v4.10.1
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BRANCH: main
VALIDATE_ALL_CODEBASE: false
VALIDATE_GITHUB_ACTIONS: true
#
# The Markdown rules are defined at
# .github/linters/.markdown-lint.yml
#
# Documentation on rules:
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
VALIDATE_MARKDOWN: true
VALIDATE_YAML: true

- name: Setup Node v16 for Yarn v3
uses: actions/setup-node@v3
with:
node-version: '16.15.0' # Current LTS version

- name: Enable Corepack for Yarn v3
run: corepack enable

- name: Install Yarn v3
uses: borales/actions-yarn@v3
with:
cmd: set version stable

- name: Install dependencies
uses: borales/actions-yarn@v3
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
with:
cmd: install

- name: Check internal links
uses: borales/actions-yarn@v3
with:
cmd: test:links

- name: Build site
if: ${{ success() }}
uses: borales/actions-yarn@v3
with:
cmd: build
Binary file added .yarn/.DS_Store
Binary file not shown.
786 changes: 786 additions & 0 deletions .yarn/releases/yarn-3.2.1.cjs

Large diffs are not rendered by default.

Loading