React - Create App - Nightly #293
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: React - Create App - 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: Initialize a new workspace | |
run: | | |
bit init my-workspace --default-scope my-org.my-scope | |
- name: Create a React app component | |
run: | | |
cd my-workspace | |
bit create react-app apps/my-app --aspect teambit.react/react-env | |
bit install react-router-dom --type peer | |
bit use apps/my-app | |
- name: Install dependencies | |
run: | | |
cd my-workspace | |
bit install --add-missing-deps | |
- 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: Run React app component | |
run: | | |
cd my-workspace | |
bit run my-app & | |
checkserver http://localhost:3000 | |
- 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 |