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 252429a
Showing 1 changed file with 40 additions and 10 deletions.
50 changes: 40 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,21 +313,20 @@ 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
Expand All @@ -323,7 +335,25 @@ workflows:
filters:
branches:
ignore: master

- agent-cleanup:
requires:
- main
- pull-request
- 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 252429a

Please sign in to comment.