Skip to content

React - Create Workspace - Nightly #246

React - Create Workspace - Nightly

React - Create Workspace - Nightly #246

name: React - Create Workspace - 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: Show BVM config
run: |
bvm config
- name: Create a new workspace
run: |
bit new react my-workspace --env teambit.react/react-env --default-scope my-org.my-scope
- name: Show components, envs and status
run: |
cd my-workspace
bit status
bit envs
- name: Compile, Lint, Test Components
run: |
cd my-workspace
bit compile
bit lint
bit test
- name: Preview components
run: |
cd my-workspace
bit start &
checkserver http://localhost:3000
- name: Tag components
run: |
cd my-workspace
bit tag --message "initial tag"
- name: Create a local scope
run: |
barescope my-org.my-scope my-workspace
- name: Export components
run: |
cd my-workspace
bit export
continue-on-error: false