-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (60 loc) · 1.82 KB
/
lit-create-env-component-nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Lit - 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: Show BVM config
run: |
bvm config
- name: Initialize a new workspace
run: |
bit init my-workspace --default-scope my-org.my-scope --log error
- name: Create a Lit env
run: |
cd my-workspace
bit create lit-env envs/my-lit-env --aspect teambit.web-components/lit --log error
- name: Create a Lit component and set env
run: |
cd my-workspace
bit create lit pages/welcome-home --aspect teambit.web-components/lit --log error
bit env set my-org.my-scope/pages/welcome-home my-org.my-scope/envs/my-lit-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