Skip to content

Commit

Permalink
update gatsby-theme-aio
Browse files Browse the repository at this point in the history
  • Loading branch information
louisachu committed Mar 31, 2023
1 parent 272ef88 commit d333319
Show file tree
Hide file tree
Showing 5 changed files with 21,031 additions and 14,627 deletions.
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
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
59 changes: 40 additions & 19 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,28 +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
VALIDATE_GITLEAKS: 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
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://github.com/icaraps"
},
"dependencies": {
"@adobe/gatsby-theme-aio": "^4.6.1",
"@adobe/gatsby-theme-aio": "^4.9.0",
"gatsby": "4.22.0",
"react": "^17.0.0",
"react-dom": "^17.0.0"
Expand All @@ -24,6 +24,18 @@
"dev:https": "gatsby develop --https --host localhost.corp.adobe.com --port 9000",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean"
"clean": "gatsby clean",
"test:links": "remark src/pages --quiet --frail",
"lint": "docker run --rm -e RUN_LOCAL=true --env-file '.github/super-linter.env' -v \"$PWD\":/tmp/lint github/super-linter:slim-v4.10.1"
},
"remarkConfig": {
"plugins": [
"remark-validate-links"
]
},
"packageManager": "[email protected]",
"devDependencies": {
"remark-cli": "^11.0.0",
"remark-validate-links": "^12.1.0"
}
}
Loading

0 comments on commit d333319

Please sign in to comment.