Skip to content

Angular - Create Env and Component - Nightly #299

Angular - Create Env and Component - Nightly

Angular - Create Env and Component - Nightly #299

name: Angular - Create Env and Component - Nightly
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
container:
image: bitsrc/nightly:latest
env:
HOME: /home/bituser
steps:
- name: Update BVM
run: |
bvm config set RELEASE_TYPE nightly
bvm upgrade
bvm config
bit --version
- name: Initialize a new workspace
run: |
bit init my-workspace --default-scope my-org.my-scope --log error
- name: Create a Angular env
run: |
cd my-workspace
bit create ng-env envs/my-angular-env --aspect bitdev.angular/angular-env --log error
- name: Create a Angular component and set env
run: |
cd my-workspace
bit create ng-module pages/welcome --aspect bitdev.angular/angular-env --log error
bit env set my-org.my-scope/pages/welcome my-org.my-scope/envs/my-angular-env --log error
- name: Install dependencies
run: |
cd my-workspace
bit install --add-missing-deps --log error
- name: Show components, envs and status
run: |
cd my-workspace
bit status --log error
bit envs --log error
- name: Compile, lint, test components
run: |
cd my-workspace
bit compile --log error
bit lint --log error
bit test --log error
- name: Preview components
run: |
cd my-workspace
bit start --log error &
checkserver http://localhost:3000
- name: Tag components
run: |
cd my-workspace
bit tag --message "initial tag" --log error
- name: Create a local scope
run: |
barescope my-org.my-scope my-workspace
- name: Export components
run: |
cd my-workspace
bit export --log error
continue-on-error: false