-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: (1421 commits) feat(gatsby-image): add onStartLoad prop (#6702) fix(docs): add Ecosystem to docs sidebar, consistency with tutorial sidebar (#10350) fix(www): Starters.yaml housekeeping (#10354) docs: add ttag starter (#10352) docs: document branching (#9983) plugin checker initial commit (#7062) docs: new starter features is required (#10353) docs: migrated line highlighting to highlight-line, highlight-start, highlight-end (#10202) Add Birra Napoli to site showcase (#10344) Add BetterDocs to site showcase (#10349) chore(release): Publish Add option to keep metadata in files processed by `gatsby-plugin-sharp` (#10210) fix(gatsby): [loki] sync db autosaves (#10212) Add Ad Hoc Homework to sites.yml (#10346) fix(graphql-skip-limit): declare `graphql` peer dependency (#10305) fix(gatsby-plugin-offline): gracefully degrade if appshell isn't precached (#10329) Service workers note (#10276) fix(docs): link fixes, podcast addition (#10332) feat(docs): Create clearer pathways in docs (#9898) feat(www): Rename community section to creators (#10312) ...
- Loading branch information
Showing
1,889 changed files
with
82,894 additions
and
26,531 deletions.
There are no files selected for viewing
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
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,191 @@ | ||
executors: | ||
node: | ||
parameters: | ||
image: | ||
type: string | ||
default: "10" | ||
docker: | ||
- image: circleci/node:<< parameters.image >> | ||
|
||
aliases: | ||
e2e-executor: &e2e-executor | ||
docker: | ||
- image: cypress/browsers:chrome69 | ||
|
||
restore_cache: &restore_cache | ||
restore_cache: | ||
name: Restore node_modules cache | ||
keys: | ||
- yarn-cypress-cache-{{ checksum "yarn.lock" }} | ||
|
||
install_node_modules: &install_node_modules | ||
run: | ||
name: Install node modules | ||
command: yarn --frozen-lockfile | ||
|
||
persist_cache: &persist_cache | ||
save_cache: | ||
name: Save node modules cache | ||
key: yarn-cypress-cache-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ~/.cache | ||
|
||
attach_to_bootstrap: &attach_to_bootstrap | ||
attach_workspace: | ||
at: packages | ||
|
||
ignore_master: &ignore_master | ||
filters: | ||
branches: | ||
ignore: | ||
- master | ||
|
||
ignore_docs: &ignore_docs | ||
filters: | ||
branches: | ||
ignore: | ||
- /docs.+/ | ||
- /blog.+/ | ||
|
||
test_template: &test_template | ||
steps: | ||
- checkout | ||
- run: ./scripts/assert-changed-files.sh "packages/*|.circleci/*" | ||
- <<: *restore_cache | ||
- <<: *install_node_modules | ||
- <<: *persist_cache | ||
- <<: *attach_to_bootstrap | ||
- run: yarn jest -w 1 | ||
|
||
e2e-test-workflow: &e2e-test-workflow | ||
filters: | ||
branches: | ||
ignore: | ||
- master | ||
- /docs.+/ | ||
- /blog.+/ | ||
requires: | ||
- bootstrap | ||
|
||
commands: | ||
e2e-test: | ||
parameters: | ||
trigger_pattern: | ||
type: string | ||
default: "packages/*|.circleci/*" | ||
test_path: | ||
type: string | ||
steps: | ||
- checkout | ||
- run: ./scripts/assert-changed-files.sh "<< parameters.trigger_pattern >>|<< parameters.test_path >>/*" | ||
- <<: *restore_cache | ||
- <<: *install_node_modules | ||
- <<: *persist_cache | ||
- <<: *attach_to_bootstrap | ||
- run: ./scripts/e2e-test.sh "<< parameters.test_path >>" | ||
|
||
version: 2.1 | ||
|
||
jobs: | ||
bootstrap: | ||
executor: node | ||
steps: | ||
- checkout | ||
- run: ./scripts/assert-changed-files.sh "packages/*|(e2e|integration)-tests/*|.circleci/*" | ||
- <<: *restore_cache | ||
- <<: *install_node_modules | ||
- <<: *persist_cache | ||
- run: yarn bootstrap | ||
- persist_to_workspace: | ||
root: packages | ||
paths: | ||
- "*" | ||
|
||
lint: | ||
executor: node | ||
steps: | ||
- checkout | ||
- <<: *restore_cache | ||
- <<: *install_node_modules | ||
- <<: *persist_cache | ||
- run: yarn lint | ||
|
||
unit_tests_node6: | ||
executor: | ||
name: node | ||
image: "6" | ||
<<: *test_template | ||
|
||
unit_tests_node8: | ||
executor: | ||
name: node | ||
image: "8" | ||
<<: *test_template | ||
|
||
unit_tests_node10: | ||
executor: node | ||
<<: *test_template | ||
|
||
integration_tests: | ||
executor: node | ||
steps: | ||
- checkout | ||
- run: ./scripts/assert-changed-files.sh "packages/*|integration-tests/*|.circleci/*" | ||
- <<: *restore_cache | ||
- <<: *install_node_modules | ||
- <<: *persist_cache | ||
- <<: *attach_to_bootstrap | ||
- run: yarn test:integration | ||
|
||
e2e_tests_gatsbygram: | ||
<<: *e2e-executor | ||
steps: | ||
- e2e-test: | ||
test_path: examples/gatsbygram | ||
|
||
e2e_tests_path-prefix: | ||
<<: *e2e-executor | ||
steps: | ||
- e2e-test: | ||
test_path: e2e-tests/path-prefix | ||
|
||
e2e_tests_gatsby-image: | ||
<<: *e2e-executor | ||
steps: | ||
- e2e-test: | ||
test_path: e2e-tests/gatsby-image | ||
|
||
e2e_tests_runtime: | ||
<<: *e2e-executor | ||
steps: | ||
- e2e-test: | ||
test_path: e2e-tests/production-runtime | ||
|
||
workflows: | ||
version: 2 | ||
build-test: | ||
jobs: | ||
- bootstrap | ||
- lint | ||
- unit_tests_node6: | ||
<<: *ignore_docs | ||
requires: | ||
- bootstrap | ||
- unit_tests_node8: | ||
<<: *ignore_docs | ||
requires: | ||
- bootstrap | ||
- unit_tests_node10: | ||
<<: *ignore_docs | ||
requires: | ||
- bootstrap | ||
- integration_tests: | ||
<<: *ignore_docs | ||
- e2e_tests_gatsbygram: | ||
<<: *e2e-test-workflow | ||
- e2e_tests_path-prefix: | ||
<<: *e2e-test-workflow | ||
- e2e_tests_gatsby-image: | ||
<<: *e2e-test-workflow | ||
- e2e_tests_runtime: | ||
<<: *e2e-test-workflow |
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,4 @@ | ||
**/*.js.snap text eol=lf | ||
**/__testfixtures__/** text eol=lf | ||
**/__tests__/fixtures/** text eol=lf | ||
**/*.md text eol=lf |
Oops, something went wrong.