Skip to content

Instantly share code, notes, and snippets.

@vsavkin
Last active December 17, 2019 02:13
Show Gist options
  • Save vsavkin/c432c23d200e551f2d08d5f449d88f65 to your computer and use it in GitHub Desktop.
Save vsavkin/c432c23d200e551f2d08d5f449d88f65 to your computer and use it in GitHub Desktop.
- job: lint1
dependsOn: initial_setup
condition: |
and(
succeeded(),
not(contains(
dependencies.initial_setup.outputs['setCommands.COMMANDS'],
'"lint1":[]'
))
)
pool:
vmImage: 'ubuntu-latest'
variables:
COMMANDS: $[ dependencies.initial_setup.outputs['setCommands.COMMANDS'] ]
steps:
- template: .azure-pipelines/steps/install-node-modules.yml
- script: node ./tools/scripts/run-many.js '$(COMMANDS)' lint1 lint
const array =
execSync(`npx nx print-affected --base=${baseSha} --target=${target} --select="tasks.target.project"`)
.toString()
.trim()
.split(', ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment