Skip to content

Commit b68f0d3

Browse files
[Clones] - Add CI build for each clone (Resolves #2664) (#2666)
1 parent 65a6410 commit b68f0d3

File tree

7 files changed

+156
-26
lines changed

7 files changed

+156
-26
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
name: Build Clones
2+
on: [pull_request]
3+
jobs:
4+
build_bear:
5+
runs-on: macos-latest
6+
defaults:
7+
run:
8+
# Run everything from within the bear project directory
9+
working-directory: ./super_clones/bear
10+
steps:
11+
# Checkout the PR branch
12+
- uses: actions/checkout@v3
13+
14+
# Setup Flutter environment
15+
- uses: subosito/flutter-action@v2
16+
with:
17+
channel: "master"
18+
architecture: x64
19+
20+
# Download all the packages that the app uses
21+
- run: flutter pub get
22+
23+
# Build the clone
24+
- run: flutter build macos --debug
25+
26+
build_google_docs:
27+
runs-on: macos-latest
28+
defaults:
29+
run:
30+
# Run everything from within the google_docs project directory
31+
working-directory: ./super_clones/google_docs
32+
steps:
33+
# Checkout the PR branch
34+
- uses: actions/checkout@v3
35+
36+
# Setup Flutter environment
37+
- uses: subosito/flutter-action@v2
38+
with:
39+
channel: "master"
40+
architecture: x64
41+
42+
# Download all the packages that the app uses
43+
- run: flutter pub get
44+
45+
# Build the clone
46+
- run: flutter build macos --debug
47+
48+
build_medium:
49+
runs-on: macos-latest
50+
defaults:
51+
run:
52+
# Run everything from within the medium project directory
53+
working-directory: ./super_clones/medium
54+
steps:
55+
# Checkout the PR branch
56+
- uses: actions/checkout@v3
57+
58+
# Setup Flutter environment
59+
- uses: subosito/flutter-action@v2
60+
with:
61+
channel: "master"
62+
architecture: x64
63+
64+
# Download all the packages that the app uses
65+
- run: flutter pub get
66+
67+
# Build the clone
68+
- run: flutter build web --debug
69+
70+
build_obsidian:
71+
runs-on: macos-latest
72+
defaults:
73+
run:
74+
# Run everything from within the obsidian project directory
75+
working-directory: ./super_clones/obsidian
76+
steps:
77+
# Checkout the PR branch
78+
- uses: actions/checkout@v3
79+
80+
# Setup Flutter environment
81+
- uses: subosito/flutter-action@v2
82+
with:
83+
channel: "master"
84+
architecture: x64
85+
86+
# Download all the packages that the app uses
87+
- run: flutter pub get
88+
89+
# Build the clone
90+
- run: flutter build macos --debug
91+
92+
build_slack:
93+
runs-on: macos-latest
94+
defaults:
95+
run:
96+
# Run everything from within the slack project directory
97+
working-directory: ./super_clones/slack
98+
steps:
99+
# Checkout the PR branch
100+
- uses: actions/checkout@v3
101+
102+
# Setup Flutter environment
103+
- uses: subosito/flutter-action@v2
104+
with:
105+
channel: "master"
106+
architecture: x64
107+
108+
# Download all the packages that the app uses
109+
- run: flutter pub get
110+
111+
# Build the clone
112+
- run: flutter build macos --debug
113+
114+
build_quill:
115+
runs-on: macos-latest
116+
defaults:
117+
run:
118+
# Run everything from within the quill project directory
119+
working-directory: ./super_clones/quill
120+
steps:
121+
# Checkout the PR branch
122+
- uses: actions/checkout@v3
123+
124+
# Setup Flutter environment
125+
- uses: subosito/flutter-action@v2
126+
with:
127+
channel: "master"
128+
architecture: x64
129+
130+
# Download all the packages that the app uses
131+
- run: flutter pub get
132+
133+
# Build the clone
134+
- run: flutter build macos --debug

super_clones/bear/pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
name: bear
22
description: "A Flutter clone of Bear"
3-
publish_to: 'none'
3+
publish_to: "none"
44

55
version: 1.0.0+1
66

77
environment:
8-
sdk: '>=3.4.1 <4.0.0'
8+
sdk: ^3.6.0
99

1010
dependencies:
1111
flutter:
1212
sdk: flutter
1313

1414
cupertino_icons: ^1.0.6
1515
super_editor:
16-
path: ../../
16+
path: ../../super_editor
1717
super_editor_markdown:
18-
path: ../../../super_editor_markdown
18+
path: ../../super_editor_markdown
1919

2020
dependency_overrides:
2121
super_editor:
22-
path: ../../
22+
path: ../../super_editor
2323
super_editor_markdown:
24-
path: ../../../super_editor_markdown
24+
path: ../../super_editor_markdown
2525
super_text_layout:
26-
path: ../../../super_text_layout
26+
path: ../../super_text_layout
2727

2828
dev_dependencies:
2929
flutter_test:

super_clones/google_docs/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ publish_to: "none"
55
version: 1.0.0+1
66

77
environment:
8-
sdk: ">=3.0.0 <4.0.0"
8+
sdk: ^3.6.0
99

1010
dependencies:
1111
flutter:
@@ -14,7 +14,7 @@ dependencies:
1414
cupertino_icons: ^1.0.6
1515
follow_the_leader: ^0.0.4+7
1616
super_editor:
17-
path: ../
17+
path: ../../super_editor
1818
super_text_layout:
1919
path: ../../super_text_layout
2020
google_fonts: ^6.2.1
@@ -24,7 +24,7 @@ dependency_overrides:
2424
# Override to local mono-repo path so devs can test this repo
2525
# against changes that they're making to other mono-repo packages
2626
super_editor:
27-
path: ../
27+
path: ../../super_editor
2828
super_editor_markdown:
2929
path: ../../super_editor_markdown
3030
super_text_layout:

super_clones/medium/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: medium
22
description: "A Flutter clone of Medium."
3-
publish_to: 'none'
3+
publish_to: "none"
44

55
version: 1.0.0+1
66

@@ -22,7 +22,6 @@ dev_dependencies:
2222
flutter_lints: ^5.0.0
2323

2424
flutter:
25-
2625
# The following line ensures that the Material Icons font is
2726
# included with your application, so that you can use the icons in
2827
# the material Icons class.

super_clones/obsidian/pubspec.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: super_editor_obsidian
22
description: A Flutter clone of Obsidian
3-
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
3+
publish_to: "none" # Remove this line if you wish to publish to pub.dev
44

55
version: 1.0.0+1
66

77
environment:
8-
sdk: '>=3.0.5 <4.0.0'
8+
sdk: ^3.6.0
99

1010
dependencies:
1111
flutter:
@@ -21,7 +21,6 @@ dev_dependencies:
2121
flutter_lints: ^2.0.0
2222

2323
flutter:
24-
2524
# The following line ensures that the Material Icons font is
2625
# included with your application, so that you can use the icons in
2726
# the material Icons class.

super_clones/quill/pubspec.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: feather
22
description: "A Flutter clone of Quill"
3-
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
3+
publish_to: "none" # Remove this line if you wish to publish to pub.dev
44

55
version: 1.0.0+1
66

77
environment:
8-
sdk: '>=3.0.0 <4.0.0'
8+
sdk: ^3.6.0
99

1010
dependencies:
1111
flutter:
@@ -24,15 +24,15 @@ dependencies:
2424

2525
dependency_overrides:
2626
super_editor:
27-
path: ../../
27+
path: ../../super_editor
2828
super_editor_quill:
29-
path: ../../../super_editor_quill
29+
path: ../../super_editor_quill
3030
super_editor_markdown:
31-
path: ../../../super_editor_markdown
31+
path: ../../super_editor_markdown
3232
super_text_layout:
33-
path: ../../../super_text_layout
33+
path: ../../super_text_layout
3434
attributed_text:
35-
path: ../../../attributed_text
35+
path: ../../attributed_text
3636

3737
dev_dependencies:
3838
flutter_test:
@@ -41,7 +41,6 @@ dev_dependencies:
4141
flutter_lints: ^3.0.0
4242

4343
flutter:
44-
4544
uses-material-design: true
4645

4746
# To add assets to your application, add an assets section, like this:
@@ -74,4 +73,4 @@ flutter:
7473
fonts:
7574
- asset: assets/fonts/Fira_Mono/FiraMono-Regular.ttf
7675
- asset: assets/fonts/Fira_Mono/FiraMono-Bold.ttf
77-
weight: 700
76+
weight: 700

super_clones/slack/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: slack
22
description: "A Flutter clone of Slack."
3-
publish_to: 'none'
3+
publish_to: "none"
44

55
version: 1.0.0+1
66

@@ -20,7 +20,6 @@ dev_dependencies:
2020
flutter_lints: ^5.0.0
2121

2222
flutter:
23-
2423
# The following line ensures that the Material Icons font is
2524
# included with your application, so that you can use the icons in
2625
# the material Icons class.

0 commit comments

Comments
 (0)