Skip to content

Commit

Permalink
update github workflow for bitdev
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Sep 28, 2023
1 parent 9753843 commit 6286508
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 68 deletions.
130 changes: 65 additions & 65 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,34 @@ jobs:
run: bit install --log

- name: Remove v15
run: bit remove versions/angular-v15 -s -f --log
run: bit remove envs/angular-v15-env -s -f --log

- name: Remove v15 fork
run: bit remove forks/angular-env-v15 -s -f --log
run: bit remove examples/my-angular-v15-env -s -f --log

- name: Remove v14
run: bit remove versions/angular-v14 -s -f --log
run: bit remove envs/angular-v14-env -s -f --log

- name: Remove v14 fork
run: bit remove forks/angular-env-v14 -s -f --log
run: bit remove examples/my-angular-v14-env -s -f --log

- name: Remove v13
run: bit remove versions/angular-v13 -s -f --log
run: bit remove envs/angular-v13-env -s -f --log

- name: Remove v13 fork
run: bit remove forks/angular-env-v13 -s -f --log
run: bit remove examples/my-angular-v13-env -s -f --log

- name: Remove v12
run: bit remove versions/angular-v12 -s -f --log
run: bit remove envs/angular-v12-env -s -f --log

- name: Remove v12 fork
run: bit remove forks/angular-env-v12 -s -f --log
run: bit remove examples/my-angular-v12-env -s -f --log

- name: Add example component
run: bit add examples/demo-lib --log
run: bit add integration/demo-lib --log

- name: Add example app
run: bit add examples/demo-app --log
run: bit add integration/demo-app --log

- name: Cleanup node modules
run: bit cc
Expand Down Expand Up @@ -122,37 +122,37 @@ jobs:
run: bit install --log

- name: Remove default
run: bit remove angular -s -f --log
run: bit remove angular-env -s -f --log

- name: Remove default fork
run: bit remove forks/angular-env-default -s -f --log
run: bit remove examples/my-angular-env -s -f --log

- name: Remove v15
run: bit remove versions/angular-v15 -s -f --log
run: bit remove envs/angular-v15-env -s -f --log

- name: Remove v15 fork
run: bit remove forks/angular-env-v15 -s -f --log
run: bit remove examples/my-angular-v15-env -s -f --log

- name: Remove v14
run: bit remove versions/angular-v14 -s -f --log
run: bit remove envs/angular-v14-env -s -f --log

- name: Remove v14 fork
run: bit remove forks/angular-env-v14 -s -f --log
run: bit remove examples/my-angular-v14-env -s -f --log

- name: Remove v13
run: bit remove versions/angular-v13 -s -f --log
run: bit remove envs/angular-v13-env -s -f --log

- name: Remove v13 fork
run: bit remove forks/angular-env-v13 -s -f --log
run: bit remove examples/my-angular-v13-env -s -f --log

- name: Remove v12
run: bit remove versions/angular-v12 -s -f --log
run: bit remove envs/angular-v12-env -s -f --log

- name: Remove v12 fork
run: bit remove forks/angular-env-v12 -s -f --log
run: bit remove examples/my-angular-v12-env -s -f --log

- name: Add example component
run: bit add examples/demo-lib-v16 --log
run: bit add integration/demo-lib-v16 --log

- name: Cleanup node modules
run: bit cc
Expand Down Expand Up @@ -208,37 +208,37 @@ jobs:
run: bit install --log

- name: Remove default
run: bit remove angular -s -f --log
run: bit remove angular-env -s -f --log

- name: Remove default fork
run: bit remove forks/angular-env-default -s -f --log
run: bit remove examples/my-angular-env -s -f --log

- name: Remove v16
run: bit remove versions/angular-v16 -s -f --log
run: bit remove envs/angular-v16-env -s -f --log

- name: Remove v16 fork
run: bit remove forks/angular-env-v16 -s -f --log
run: bit remove examples/my-angular-v16-env -s -f --log

- name: Remove v14
run: bit remove versions/angular-v14 -s -f --log
run: bit remove envs/angular-v14-env -s -f --log

- name: Remove v14 fork
run: bit remove forks/angular-env-v14 -s -f --log
run: bit remove examples/my-angular-v14-env -s -f --log

- name: Remove v13
run: bit remove versions/angular-v13 -s -f --log
run: bit remove envs/angular-v13-env -s -f --log

- name: Remove v13 fork
run: bit remove forks/angular-env-v13 -s -f --log
run: bit remove examples/my-angular-v13-env -s -f --log

- name: Remove v12
run: bit remove versions/angular-v12 -s -f --log
run: bit remove envs/angular-v12-env -s -f --log

- name: Remove v12 fork
run: bit remove forks/angular-env-v12 -s -f --log
run: bit remove examples/my-angular-v12-env -s -f --log

- name: Add example component
run: bit add examples/demo-lib-v15 --log
run: bit add integration/demo-lib-v15 --log

- name: Cleanup node modules
run: bit cc
Expand Down Expand Up @@ -293,37 +293,37 @@ jobs:
run: bit install --log

- name: Remove default
run: bit remove angular -s -f --log
run: bit remove angular-env -s -f --log

- name: Remove default fork
run: bit remove forks/angular-env-default -s -f --log
run: bit remove examples/my-angular-env -s -f --log

- name: Remove v16
run: bit remove versions/angular-v16 -s -f --log
run: bit remove envs/angular-v16-env -s -f --log

- name: Remove v16 fork
run: bit remove forks/angular-env-v16 -s -f --log
run: bit remove examples/my-angular-v16-env -s -f --log

- name: Remove v15
run: bit remove versions/angular-v15 -s -f --log
run: bit remove envs/angular-v15-env -s -f --log

- name: Remove v15 fork
run: bit remove forks/angular-env-v15 -s -f --log
run: bit remove examples/my-angular-v15-env -s -f --log

- name: Remove v13
run: bit remove versions/angular-v13 -s -f --log
run: bit remove envs/angular-v13-env -s -f --log

- name: Remove v13 fork
run: bit remove forks/angular-env-v13 -s -f --log
run: bit remove examples/my-angular-v13-env -s -f --log

- name: Remove v12
run: bit remove versions/angular-v12 -s -f --log
run: bit remove envs/angular-v12-env -s -f --log

- name: Remove v12 fork
run: bit remove forks/angular-env-v12 -s -f --log
run: bit remove examples/my-angular-v12-env -s -f --log

- name: Add example component
run: bit add examples/demo-lib-v14 --log
run: bit add integration/demo-lib-v14 --log

- name: Cleanup node modules
run: bit cc
Expand Down Expand Up @@ -378,37 +378,37 @@ jobs:
run: bit install --log

- name: Remove default
run: bit remove angular -s -f --log
run: bit remove angular-env -s -f --log

- name: Remove default fork
run: bit remove forks/angular-env-default -s -f --log
run: bit remove examples/my-angular-env -s -f --log

- name: Remove v16
run: bit remove versions/angular-v16 -s -f --log
run: bit remove envs/angular-v16-env -s -f --log

- name: Remove v16 fork
run: bit remove forks/angular-env-v16 -s -f --log
run: bit remove examples/my-angular-v16-env -s -f --log

- name: Remove v15
run: bit remove versions/angular-v15 -s -f --log
run: bit remove envs/angular-v15-env -s -f --log

- name: Remove v15 fork
run: bit remove forks/angular-env-v15 -s -f --log
run: bit remove examples/my-angular-v15-env -s -f --log

- name: Remove v14
run: bit remove versions/angular-v14 -s -f --log
run: bit remove envs/angular-v14-env -s -f --log

- name: Remove v14 fork
run: bit remove forks/angular-env-v14 -s -f --log
run: bit remove examples/my-angular-v14-env -s -f --log

- name: Remove v12
run: bit remove versions/angular-v12 -s -f --log
run: bit remove envs/angular-v12-env -s -f --log

- name: Remove v12 fork
run: bit remove forks/angular-env-v12 -s -f --log
run: bit remove examples/my-angular-v12-env -s -f --log

- name: Add example component
run: bit add examples/demo-lib-v13 --log
run: bit add integration/demo-lib-v13 --log

- name: Cleanup node modules
run: bit cc
Expand Down Expand Up @@ -464,37 +464,37 @@ jobs:
run: bit install --log

- name: Remove default
run: bit remove angular -s -f --log
run: bit remove angular-env -s -f --log

- name: Remove default fork
run: bit remove forks/angular-env-default -s -f --log
run: bit remove examples/my-angular-env -s -f --log

- name: Remove v16
run: bit remove versions/angular-v16 -s -f --log
run: bit remove envs/angular-v16-env -s -f --log

- name: Remove v16 fork
run: bit remove forks/angular-env-v16 -s -f --log
run: bit remove examples/my-angular-v16-env -s -f --log

- name: Remove v15
run: bit remove versions/angular-v15 -s -f --log
run: bit remove envs/angular-v15-env -s -f --log

- name: Remove v15 fork
run: bit remove forks/angular-env-v15 -s -f --log
run: bit remove examples/my-angular-v15-env -s -f --log

- name: Remove v14
run: bit remove versions/angular-v14 -s -f --log
run: bit remove envs/angular-v14-env -s -f --log

- name: Remove v14 fork
run: bit remove forks/angular-env-v14 -s -f --log
run: bit remove examples/my-angular-v14-env -s -f --log

- name: Remove v13
run: bit remove versions/angular-v13 -s -f --log
run: bit remove envs/angular-v13-env -s -f --log

- name: Remove v13 fork
run: bit remove forks/angular-env-v13 -s -f --log
run: bit remove examples/my-angular-v13-env -s -f --log

- name: Add example component
run: bit add examples/demo-lib-v12 --log
run: bit add integration/demo-lib-v12 --log

- name: Cleanup node modules
run: bit cc
Expand Down
6 changes: 3 additions & 3 deletions scripts/keep-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ const argv = key => {
const regexp = [];
// Remove all versions but this one
const version = parseInt(argv('version'));
regexp.push(new RegExp(`\\s\\s"teambit\\.angular\\/versions\\/angular\\-v(?!${version})\\d\\d?":\\s\\{\\},\\n`, "g"));
regexp.push(new RegExp(`\\s\\s"bitdev\\.angular\\/envs\\/angular-v(?!${version})\\d\\d?-env":\\s\\{\\},\\n`, "g"));

const defaultEnv = argv('default');
// Remove default env & app if needed
if(!defaultEnv) {
regexp.push(new RegExp(`\\s\\s"teambit\\.angular\\/angular":\\s\\{\\},\\n`, "g"));
regexp.push(new RegExp(`\\s\\s"examples\\/demo-app":\\s\\{\\},\\n`, "g"));
regexp.push(new RegExp(`\\s\\s"bitdev\\.angular\\/angular-env":\\s\\{\\},\\n`, "g"));
regexp.push(new RegExp(`\\s\\s"integration\\/demo-app":\\s\\{\\},\\n`, "g"));
}

try {
Expand Down

0 comments on commit 6286508

Please sign in to comment.