Skip to content

Commit

Permalink
Merge pull request #690 from Financial-Times/fixup
Browse files Browse the repository at this point in the history
Miscellaneous fixes for major release
  • Loading branch information
ivomurrell authored Sep 16, 2024
2 parents ee1651d + 666a9aa commit b7c3edb
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 31 deletions.
19 changes: 4 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,12 @@ references:
only:
- main

filters_only_renovate_nori:
&filters_only_renovate_nori
branches:
only: /(^renovate-.*|^nori\/.*)/

filters_ignore_tags_renovate_nori_build_main:
&filters_ignore_tags_renovate_nori_build_main
filters_ignore_main:
&filters_ignore_main
tags:
ignore: /.*/
branches:
ignore: /(^renovate-.*|^nori\/.*|^gh-pages|^main$)/
ignore: /^main$/

filters_main_branch:
&filters_main_branch
Expand Down Expand Up @@ -180,7 +175,7 @@ workflows:
jobs:
- build:
filters:
<<: *filters_ignore_tags_renovate_nori_build_main
<<: *filters_ignore_main
name: build-v<< matrix.node-version >>
matrix:
parameters:
Expand Down Expand Up @@ -218,13 +213,7 @@ workflows:
- scheduled_pipeline
- << pipeline.trigger_source >>
jobs:
- waiting-for-approval:
type: approval
filters:
<<: *filters_only_renovate_nori
- build:
requires:
- waiting-for-approval
name: build-v<< matrix.node-version >>
matrix:
parameters:
Expand Down
10 changes: 3 additions & 7 deletions core/cli/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ export function validateConfig(config: ValidPluginsConfig): ValidConfig {
const pluginOptionConflicts = findConflicts(Object.values(config.pluginOptions))
const taskOptionConflicts = findConflicts(Object.values(config.taskOptions))

const definedCommandTaskConflicts = commandTaskConflicts.filter((conflict) => {
return conflict.conflicting[0].id in config.hooks
})

let shouldThrow = false
const error = new ToolKitConflictError(
'There are problems with your Tool Kit configuration.',
Expand All @@ -71,7 +67,7 @@ export function validateConfig(config: ValidPluginsConfig): ValidConfig {

if (
hookConflicts.length > 0 ||
definedCommandTaskConflicts.length > 0 ||
commandTaskConflicts.length > 0 ||
taskConflicts.length > 0 ||
pluginOptionConflicts.length > 0 ||
taskOptionConflicts.length > 0
Expand All @@ -82,8 +78,8 @@ export function validateConfig(config: ValidPluginsConfig): ValidConfig {
error.details += formatHookConflicts(hookConflicts)
}

if (definedCommandTaskConflicts.length) {
error.details += formatCommandTaskConflicts(definedCommandTaskConflicts)
if (commandTaskConflicts.length) {
error.details += formatCommandTaskConflicts(commandTaskConflicts)
}

if (taskConflicts.length) {
Expand Down
2 changes: 0 additions & 2 deletions plugins/circleci-deploy/.toolkitrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ options:
- name: 'deploy-review'
requires:
- 'setup'
- 'waiting-for-approval'
splitIntoMatrix: false
runOnRelease: false
custom:
Expand Down Expand Up @@ -77,7 +76,6 @@ options:
- name: 'deploy-review'
requires:
- 'setup'
- 'waiting-for-approval'
splitIntoMatrix: false
runOnRelease: false
custom:
Expand Down
1 change: 0 additions & 1 deletion plugins/circleci/test/files/with-hook/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ workflows:
jobs:
- tool-kit/test-job:
requires:
- waiting-for-approval
- tool-kit/that-job
executor: node
7 changes: 5 additions & 2 deletions plugins/frontend-app/.toolkitrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ plugins:

commands:
'run:local':
- WebpackDevelopment # run a webpack compile before starting the server because dotcom-server-asset-loader expects a manifest to exist
- Webpack:
envName: development # run a webpack compile before starting the server because dotcom-server-asset-loader expects a manifest to exist
- Node
- WebpackWatch
- Webpack:
envName: development
watch: true

version: 2
17 changes: 13 additions & 4 deletions plugins/webpack/.toolkitrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@ tasks:
Webpack: './lib/tasks/webpack'

commands:
'build:local': Webpack
'build:ci': Webpack
'build:remote': Webpack
'run:local': Webpack
'build:local':
Webpack:
envName: development
'build:ci':
Webpack:
envName: production
'build:remote':
Webpack:
envName: production
'run:local':
Webpack:
envName: development
watch: true

version: 2

0 comments on commit b7c3edb

Please sign in to comment.