Skip to content

Commit

Permalink
chore(repo): separate agent cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Aug 13, 2021
1 parent 81888a9 commit 6b70b66
Showing 1 changed file with 41 additions and 10 deletions.
51 changes: 41 additions & 10 deletions .circleci/config.yml
Expand Up @@ -215,6 +215,19 @@ jobs:
# JOBS: Agent cleanup
# -------------------------
agent-cleanup:
parameters:
os:
type: string
default: 'linux'
cli:
type: string
default: ''
pm:
type: string
default: pnpm
executor: << parameters.os >>
environment:
NX_E2E_CI_CACHE_KEY: e2e-circleci-<< parameters.os >>-<< parameters.pm >>
steps:
- run:
name: Stop All Running Agents for This CI Run
Expand Down Expand Up @@ -300,30 +313,48 @@ workflows:
name: 'agent9'
- agent:
name: 'agent10'
os: 'macos'
# -------------------------
# Pull request logic
# -------------------------
- main:
name: 'Pull request'
name: pull-request
run-checks: true
filters:
branches:
ignore: master
- main:
name: 'Commit to master'
run-cypress-tests: true
filters:
branches:
only: master
- main:
name: 'Partial Test'
name: pull-request-osx
pm: 'yarn'
os: 'macos'
run-checks: false
run-builds: false
run-unit-tests: false
run-linting: true
run-e2e-tests: false
requires:
- pull-request
filters:
branches:
ignore: master

- agent-cleanup:
requires:
- main
- pull-request-osx
filters:
branches:
ignore: master
# -------------------------
# Commit to master
# -------------------------
- main:
name: commit-to-master
run-cypress-tests: true
filters:
branches:
only: master
- agent-cleanup:
requires:
- commit-to-master
filters:
branches:
only: master

0 comments on commit 6b70b66

Please sign in to comment.