-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (52 loc) · 1.47 KB
/
nextjs-create-app-stable.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
name: Next.js - Create App - Stable
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container:
image: bitsrc/stable:latest
env:
HOME: /home/bituser
steps:
- name: Initialize a new workspace
run: |
bit
bvm
bvm upgrade
bit init my-nextjs-workspace --default-scope my-org.my-scope --log error
- name: Create a Next.js app component
run: |
cd my-nextjs-workspace
bit create nextjs apps/my-nextjs-app --aspect frontend.nextjs/nextjs-env --log error
- name: Show components, envs and status
run: |
cd my-nextjs-workspace
bit list --log error
bit envs --log error
bit status --log error
- name: Compile, lint, test components
run: |
cd my-nextjs-workspace
bit compile --log error
bit lint --log error
bit test --log error
- name: Run Next.js app component
run: |
cd my-nextjs-workspace
bit run my-nextjs-app --log error &
checkserver http://localhost:3000
- name: Tag components
run: |
cd my-nextjs-workspace
bit tag --message "initial tag" --log error
- name: Create a local scope
run: |
barescope my-org.my-scope my-nextjs-workspace
- name: Export components
run: |
cd my-nextjs-workspace
bit export --log error
continue-on-error: false