-
Notifications
You must be signed in to change notification settings - Fork 0
chore: consolidate the build #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ commands: | |
| paths: | ||
| - node_modules | ||
| key: << pipeline.parameters.node_modules_cache_key >> | ||
|
|
||
| save_cache_build: | ||
| steps: | ||
| - save_cache: | ||
|
|
@@ -45,13 +45,16 @@ commands: | |
| - build--{{ .Revision }} | ||
|
|
||
| jobs: | ||
| start: | ||
| start_build: | ||
| type: no-op | ||
|
Comment on lines
+48
to
+49
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed to |
||
|
|
||
| complete_build: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This cannot be |
||
| <<: *executor_node | ||
| steps: | ||
| - run: | ||
| name: Start | ||
| command: | | ||
| echo Start | ||
| name: "Complete build" | ||
| command: echo "Build completed successfully" | ||
|
|
||
| lint_and_test: | ||
| <<: *executor_node | ||
| steps: | ||
|
|
@@ -64,14 +67,17 @@ jobs: | |
| - run: | ||
| name: "Test" | ||
| command: npm run test | ||
| - run: | ||
| name: "Build" | ||
| command: npm run build | ||
|
Comment on lines
+70
to
+72
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We also want to know that the docs build correctly.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am a bit puzzled at this point about what should and should not be built, but we want to ensure it doesn't fail in branch builds before merging into
I can't really tell which it needs to be, yet, but will see once a few builds go through.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So from what I understand currently the build files are committed and nothing is actually in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes - that's the first option - a porcelain check. |
||
| push_to_github_pages: | ||
| <<: *executor_node | ||
| steps: | ||
| - checkout | ||
| - restore_cache_node_modules | ||
| - run: | ||
| name: Generate documentation | ||
| command: npm run build:eleventy | ||
| command: npm run build | ||
|
Comment on lines
-74
to
+80
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should have been building the CSS as well as the eleventy files - |
||
| - run: | ||
| name: Configure dependencies | ||
| command: | | ||
|
|
@@ -84,25 +90,25 @@ jobs: | |
| workflows: | ||
| build-and-test: | ||
| jobs: | ||
| - start: | ||
| name: Start | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The names just confuse matters, which is why the build hasn't been running. Removed, accordingly.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ... nope. The names confused me; but the build hasn't been running because the branch protection doesn't make it obvious they need to. In any case, I've aligned these with conventions elsewhere. |
||
| - start_build | ||
| - be_kind_to_your_colleagues: | ||
| name: Be kind to your colleagues | ||
| type: approval | ||
| filters: | ||
| branches: | ||
| ignore: | ||
| - main | ||
| - lint_and_test: | ||
| name: Lint and test | ||
| requires: | ||
| - Start | ||
| - Be kind to your colleagues | ||
| - start_build | ||
| - be_kind_to_your_colleagues | ||
|
Comment on lines
-99
to
+103
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think these names were the reason the build never ran. |
||
| - push_to_github_pages: | ||
| name: Push to Github Pages | ||
| requires: | ||
| - Lint and test | ||
| - lint_and_test | ||
| filters: | ||
| branches: | ||
| only: | ||
| - main | ||
| - complete_build: | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A fan-in step, to simplify the branch protection statuses
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ... note that this is not a |
||
| requires: | ||
| - lint_and_test | ||
| - push_to_github_pages | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| save-exact=true | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Broken window: We went through an exercise of pinning the dependency versions - this keeps it that way. |
||
| @talis:registry=https://npm.pkg.github.com | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 18.14 | ||
| 18.14.0 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Broken window: Aligned explicitly with the version used in the CircleCI image tag. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ | |
| "homepage": "https://github.com/talis/bootstrap-theme#readme", | ||
| "scripts": { | ||
| "build": "npm-run-all build:*", | ||
| "build:css": "sass scss/:docs/assets/css/ --style=compressed --load-path=node_modules --source-map", | ||
| "build:css": "npm run css-compile", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Broken window: The definitions are the same, so compose rather than duplicating. |
||
| "build:eleventy": "eleventy", | ||
| "css": "npm-run-all css-compile css-prefix", | ||
| "css-compile": "sass scss/:docs/assets/css/ --style=compressed --load-path=node_modules --source-map", | ||
|
|
@@ -33,10 +33,10 @@ | |
| "release": "standard-version", | ||
| "server": "serve docs --listen 3000", | ||
| "start": "npm-run-all --parallel build:css watch:*", | ||
| "test": "npm run css-lint && npm run css", | ||
| "test": "npm-run-all css-lint css", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Broken window: use the tools. |
||
| "watch": "nodemon -e html,scss -x \"npm run css\"", | ||
| "watch:eleventy": "eleventy --serve", | ||
| "watch:sass": "sass scss/:docs/assets/css/ --style=compressed --load-path=node_modules --source-map --watch" | ||
| "watch:sass": "npm run css-compile -- --watch" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Broken window: Again, except for |
||
| }, | ||
| "peerDependencies": { | ||
| "bootstrap": "5.2.2", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broken window: spacing.