feat: defer internal cli imports to ng-compat component #373
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Run this workflow when there is a push to teambit/bit master | |
repository_dispatch: | |
types: [ bit_master_push ] | |
env: | |
BIT_TOKEN: ${{ secrets.BIT_TOKEN }} | |
jobs: | |
# Test angular | |
default-angular: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
container: | |
image: bitsrc/stable:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Keep default | |
run: npm i [email protected] && node scripts/keep-env.js --version=16 --default | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Install dependencies | |
run: bit install --log | |
- name: Remove v15 | |
run: bit remove envs/angular-v15-env -s -f --log | |
- name: Remove v15 fork | |
run: bit remove examples/my-angular-v15-env -s -f --log | |
- name: Remove v14 | |
run: bit remove envs/angular-v14-env -s -f --log | |
- name: Remove v14 fork | |
run: bit remove examples/my-angular-v14-env -s -f --log | |
- name: Remove v13 | |
run: bit remove envs/angular-v13-env -s -f --log | |
- name: Remove v13 fork | |
run: bit remove examples/my-angular-v13-env -s -f --log | |
- name: Remove v12 | |
run: bit remove envs/angular-v12-env -s -f --log | |
- name: Remove v12 fork | |
run: bit remove examples/my-angular-v12-env -s -f --log | |
- name: Add example component | |
run: bit add integration/demo-lib --log | |
- name: Add example app | |
run: bit add integration/demo-app --log | |
- name: Bit cc | |
run: bit cc | |
- name: Cleanup capsules | |
run: bit capsule delete --all | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Cleanup package-lock.json | |
run: rm -rf package-lock.json | |
- name: Cleanup .git/bit | |
run: rm -rf .git/bit | |
- name: Install dependencies | |
run: bit install --log | |
# Compile the example app | |
- name: Bit compile example app | |
run: bit compile demo-app --log | |
- name: Bit test | |
run: bit test --log | |
- name: Bit build | |
run: bit build --log | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: debug-log | |
path: $HOME/Library/Caches/Bit/logs | |
# Test angular-v16 | |
v16: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
container: | |
image: docker://bitcli/bit:latest | |
steps: | |
- uses: teambit/[email protected] | |
with: | |
name: angular-github-actions | |
BIT_TOKEN: ${{ env.BIT_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Keep v16 | |
run: npm i [email protected] && node scripts/keep-env.js --version=16 | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Install dependencies | |
run: bit install --log | |
- name: Remove default | |
run: bit remove angular-env -s -f --log | |
- name: Remove default fork | |
run: bit remove examples/my-angular-env -s -f --log | |
- name: Remove v15 | |
run: bit remove envs/angular-v15-env -s -f --log | |
- name: Remove v15 fork | |
run: bit remove examples/my-angular-v15-env -s -f --log | |
- name: Remove v14 | |
run: bit remove envs/angular-v14-env -s -f --log | |
- name: Remove v14 fork | |
run: bit remove examples/my-angular-v14-env -s -f --log | |
- name: Remove v13 | |
run: bit remove envs/angular-v13-env -s -f --log | |
- name: Remove v13 fork | |
run: bit remove examples/my-angular-v13-env -s -f --log | |
- name: Remove v12 | |
run: bit remove envs/angular-v12-env -s -f --log | |
- name: Remove v12 fork | |
run: bit remove examples/my-angular-v12-env -s -f --log | |
- name: Add example component | |
run: bit add integration/demo-lib-v16 --log | |
- name: Bit cc | |
run: bit cc | |
- name: Cleanup capsules | |
run: bit capsule delete --all | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Cleanup package-lock.json | |
run: rm -rf package-lock.json | |
- name: Cleanup .git/bit | |
run: rm -rf .git/bit | |
- name: Install dependencies | |
run: bit install --log | |
- name: Bit test | |
run: bit test --log | |
- name: Bit build | |
run: bit build --log | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: debug-log | |
path: $HOME/Library/Caches/Bit/logs | |
# Test angular-v15 | |
v15: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
container: | |
image: docker://bitcli/bit:latest | |
steps: | |
- uses: teambit/[email protected] | |
with: | |
name: angular-github-actions | |
BIT_TOKEN: ${{ env.BIT_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Keep v15 | |
run: npm i [email protected] && node scripts/keep-env.js --version=15 | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Install dependencies | |
run: bit install --log | |
- name: Remove default | |
run: bit remove angular-env -s -f --log | |
- name: Remove default fork | |
run: bit remove examples/my-angular-env -s -f --log | |
- name: Remove v16 | |
run: bit remove envs/angular-v16-env -s -f --log | |
- name: Remove v16 fork | |
run: bit remove examples/my-angular-v16-env -s -f --log | |
- name: Remove v14 | |
run: bit remove envs/angular-v14-env -s -f --log | |
- name: Remove v14 fork | |
run: bit remove examples/my-angular-v14-env -s -f --log | |
- name: Remove v13 | |
run: bit remove envs/angular-v13-env -s -f --log | |
- name: Remove v13 fork | |
run: bit remove examples/my-angular-v13-env -s -f --log | |
- name: Remove v12 | |
run: bit remove envs/angular-v12-env -s -f --log | |
- name: Remove v12 fork | |
run: bit remove examples/my-angular-v12-env -s -f --log | |
- name: Add example component | |
run: bit add integration/demo-lib-v15 --log | |
- name: Bit cc | |
run: bit cc | |
- name: Cleanup capsules | |
run: bit capsule delete --all | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Cleanup package-lock.json | |
run: rm -rf package-lock.json | |
- name: Cleanup .git/bit | |
run: rm -rf .git/bit | |
- name: Install dependencies | |
run: bit install --log | |
- name: Bit test | |
run: bit test --log | |
- name: Bit build | |
run: bit build --log | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: debug-log | |
path: $HOME/Library/Caches/Bit/logs | |
# Test angular-v14 | |
v14: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
container: | |
image: docker://bitcli/bit:latest | |
steps: | |
- uses: teambit/[email protected] | |
with: | |
name: angular-github-actions | |
BIT_TOKEN: ${{ env.BIT_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Keep v14 | |
run: npm i [email protected] && node scripts/keep-env.js --version=14 | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Install dependencies | |
run: bit install --log | |
- name: Remove default | |
run: bit remove angular-env -s -f --log | |
- name: Remove default fork | |
run: bit remove examples/my-angular-env -s -f --log | |
- name: Remove v16 | |
run: bit remove envs/angular-v16-env -s -f --log | |
- name: Remove v16 fork | |
run: bit remove examples/my-angular-v16-env -s -f --log | |
- name: Remove v15 | |
run: bit remove envs/angular-v15-env -s -f --log | |
- name: Remove v15 fork | |
run: bit remove examples/my-angular-v15-env -s -f --log | |
- name: Remove v13 | |
run: bit remove envs/angular-v13-env -s -f --log | |
- name: Remove v13 fork | |
run: bit remove examples/my-angular-v13-env -s -f --log | |
- name: Remove v12 | |
run: bit remove envs/angular-v12-env -s -f --log | |
- name: Remove v12 fork | |
run: bit remove examples/my-angular-v12-env -s -f --log | |
- name: Add example component | |
run: bit add integration/demo-lib-v14 --log | |
- name: Bit cc | |
run: bit cc | |
- name: Cleanup capsules | |
run: bit capsule delete --all | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Cleanup package-lock.json | |
run: rm -rf package-lock.json | |
- name: Cleanup .git/bit | |
run: rm -rf .git/bit | |
- name: Install dependencies | |
run: bit install --log | |
- name: Bit test | |
run: bit test --log | |
- name: Bit build | |
run: bit build --log | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: debug-log | |
path: $HOME/Library/Caches/Bit/logs | |
# Test angular-v13 | |
v13: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
container: | |
image: docker://bitcli/bit:latest | |
steps: | |
- uses: teambit/[email protected] | |
with: | |
name: angular-github-actions | |
BIT_TOKEN: ${{ env.BIT_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Keep v13 | |
run: npm i [email protected] && node scripts/keep-env.js --version=13 | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Install dependencies | |
run: bit install --log | |
- name: Remove default | |
run: bit remove angular-env -s -f --log | |
- name: Remove default fork | |
run: bit remove examples/my-angular-env -s -f --log | |
- name: Remove v16 | |
run: bit remove envs/angular-v16-env -s -f --log | |
- name: Remove v16 fork | |
run: bit remove examples/my-angular-v16-env -s -f --log | |
- name: Remove v15 | |
run: bit remove envs/angular-v15-env -s -f --log | |
- name: Remove v15 fork | |
run: bit remove examples/my-angular-v15-env -s -f --log | |
- name: Remove v14 | |
run: bit remove envs/angular-v14-env -s -f --log | |
- name: Remove v14 fork | |
run: bit remove examples/my-angular-v14-env -s -f --log | |
- name: Remove v12 | |
run: bit remove envs/angular-v12-env -s -f --log | |
- name: Remove v12 fork | |
run: bit remove examples/my-angular-v12-env -s -f --log | |
- name: Add example component | |
run: bit add integration/demo-lib-v13 --log | |
- name: Bit cc | |
run: bit cc | |
- name: Cleanup capsules | |
run: bit capsule delete --all | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Cleanup package-lock.json | |
run: rm -rf package-lock.json | |
- name: Cleanup .git/bit | |
run: rm -rf .git/bit | |
- name: Install dependencies | |
run: bit install --log | |
- name: Bit test | |
run: bit test --log | |
- name: Bit build | |
run: bit build --log | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: debug-log | |
path: $HOME/Library/Caches/Bit/logs | |
# Test angular-v12 | |
v12: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
container: | |
image: docker://bitcli/bit:latest | |
steps: | |
- uses: teambit/[email protected] | |
with: | |
name: angular-github-actions | |
BIT_TOKEN: ${{ env.BIT_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Keep v12 | |
run: npm i [email protected] && node scripts/keep-env.js --version=12 | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Install dependencies | |
run: bit install --log | |
- name: Remove default | |
run: bit remove angular-env -s -f --log | |
- name: Remove default fork | |
run: bit remove examples/my-angular-env -s -f --log | |
- name: Remove v16 | |
run: bit remove envs/angular-v16-env -s -f --log | |
- name: Remove v16 fork | |
run: bit remove examples/my-angular-v16-env -s -f --log | |
- name: Remove v15 | |
run: bit remove envs/angular-v15-env -s -f --log | |
- name: Remove v15 fork | |
run: bit remove examples/my-angular-v15-env -s -f --log | |
- name: Remove v14 | |
run: bit remove envs/angular-v14-env -s -f --log | |
- name: Remove v14 fork | |
run: bit remove examples/my-angular-v14-env -s -f --log | |
- name: Remove v13 | |
run: bit remove envs/angular-v13-env -s -f --log | |
- name: Remove v13 fork | |
run: bit remove examples/my-angular-v13-env -s -f --log | |
- name: Add example component | |
run: bit add integration/demo-lib-v12 --log | |
- name: Bit cc | |
run: bit cc | |
- name: Cleanup capsules | |
run: bit capsule delete --all | |
- name: Cleanup node modules | |
run: rm -rf node_modules | |
- name: Cleanup package-lock.json | |
run: rm -rf package-lock.json | |
- name: Cleanup .git/bit | |
run: rm -rf .git/bit | |
- name: Install dependencies | |
run: bit install --log | |
- name: Bit test | |
run: bit test --log | |
- name: Bit build | |
run: bit build --log | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: debug-log | |
path: $HOME/Library/Caches/Bit/logs |