File tree Expand file tree Collapse file tree 32 files changed +543
-446
lines changed Expand file tree Collapse file tree 32 files changed +543
-446
lines changed Original file line number Diff line number Diff line change @@ -3,3 +3,7 @@ root = true
3
3
[* ]
4
4
indent_style = tab
5
5
indent_size = 2
6
+
7
+ [* .{yml,yaml} ]
8
+ indent_style = space
9
+ indent_size = 2
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Documentation Coverage
2
+
3
+ on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
8
+ env :
9
+ CONSOLE_OUTPUT : XTerm
10
+ COVERAGE : PartialSummary
11
+
12
+ jobs :
13
+ validate :
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - uses : ruby/setup-ruby@v1
19
+ with :
20
+ ruby-version : " 3.3"
21
+ bundler-cache : true
22
+
23
+ - name : Validate coverage
24
+ timeout-minutes : 5
25
+ run : bundle exec bake decode:index:coverage lib
Original file line number Diff line number Diff line change
1
+ name : Documentation
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages:
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ # Allow one concurrent deployment:
15
+ concurrency :
16
+ group : " pages"
17
+ cancel-in-progress : true
18
+
19
+ env :
20
+ CONSOLE_OUTPUT : XTerm
21
+ BUNDLE_WITH : maintenance
22
+
23
+ jobs :
24
+ generate :
25
+ runs-on : ubuntu-latest
26
+
27
+ steps :
28
+ - uses : actions/checkout@v4
29
+
30
+ - uses : ruby/setup-ruby@v1
31
+ with :
32
+ ruby-version : " 3.3"
33
+ bundler-cache : true
34
+
35
+ - name : Installing packages
36
+ run : sudo apt-get install wget
37
+
38
+ - name : Generate documentation
39
+ timeout-minutes : 5
40
+ run : bundle exec bake utopia:project:static --force no
41
+
42
+ - name : Upload documentation artifact
43
+ uses : actions/upload-pages-artifact@v3
44
+ with :
45
+ path : docs
46
+
47
+ deploy :
48
+ runs-on : ubuntu-latest
49
+
50
+ environment :
51
+ name : github-pages
52
+ url : ${{steps.deployment.outputs.page_url}}
53
+
54
+ needs : generate
55
+ steps :
56
+ - name : Deploy to GitHub Pages
57
+ id : deployment
58
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change
1
+ name : Test External
2
+
3
+ on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
8
+ env :
9
+ CONSOLE_OUTPUT : XTerm
10
+
11
+ jobs :
12
+ test :
13
+ name : ${{matrix.ruby}} on ${{matrix.os}}
14
+ runs-on : ${{matrix.os}}-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ os :
19
+ - ubuntu
20
+ - macos
21
+
22
+ ruby :
23
+ - " 3.1"
24
+ - " 3.2"
25
+ - " 3.3"
26
+
27
+ steps :
28
+ - uses : actions/checkout@v4
29
+ - uses : ruby/setup-ruby@v1
30
+ with :
31
+ ruby-version : ${{matrix.ruby}}
32
+ bundler-cache : true
33
+
34
+ - name : Run RuboCop
35
+ timeout-minutes : 10
36
+ run : bundle exec rubocop
Original file line number Diff line number Diff line change
1
+ name : Test Coverage
2
+
3
+ on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
8
+ env :
9
+ CONSOLE_OUTPUT : XTerm
10
+ COVERAGE : PartialSummary
11
+
12
+ jobs :
13
+ test :
14
+ name : ${{matrix.ruby}} on ${{matrix.os}}
15
+ runs-on : ${{matrix.os}}-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ os :
20
+ - ubuntu
21
+ - macos
22
+
23
+ ruby :
24
+ - " 3.3"
25
+
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+ - uses : ruby/setup-ruby@v1
29
+ with :
30
+ ruby-version : ${{matrix.ruby}}
31
+ bundler-cache : true
32
+
33
+ - name : Setup test environment
34
+ uses : ./.github/actions/test-environment
35
+
36
+ - name : Run tests
37
+ timeout-minutes : 5
38
+ run : bundle exec bake test
39
+
40
+ - uses : actions/upload-artifact@v3
41
+ with :
42
+ name : coverage-${{matrix.os}}-${{matrix.ruby}}
43
+ path : .covered.db
44
+
45
+ validate :
46
+ needs : test
47
+ runs-on : ubuntu-latest
48
+
49
+ steps :
50
+ - uses : actions/checkout@v4
51
+ - uses : ruby/setup-ruby@v1
52
+ with :
53
+ ruby-version : " 3.3"
54
+ bundler-cache : true
55
+
56
+ - uses : actions/download-artifact@v3
57
+
58
+ - name : Validate coverage
59
+ timeout-minutes : 5
60
+ run : bundle exec bake covered:validate --paths */.covered.db \;
Original file line number Diff line number Diff line change
1
+ name : ' Test Setup'
2
+ inputs : {}
3
+ outputs : {}
4
+
5
+ runs :
6
+ using : ' composite'
7
+ steps :
8
+ - name : Installing dependencies (ubuntu)
9
+ if : matrix.os == 'ubuntu'
10
+ run : |
11
+ sudo systemctl stop mysql
12
+ sudo apt-get install libmariadb-dev
13
+
14
+ services :
15
+ mariadb :
16
+ image : mariadb
17
+ ports :
18
+ - 3306:3306
19
+ env :
20
+ MYSQL_USER : test
21
+ MYSQL_PASSWORD : test
22
+ MYSQL_DATABASE : test
23
+ MYSQL_ROOT_PASSWORD : test
24
+ options : >-
25
+ --health-cmd "mysqladmin ping"
26
+ --health-interval 10s
27
+ --health-timeout 5s
28
+ --health-retries 20
Original file line number Diff line number Diff line change
1
+ name : Test External
2
+
3
+ on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
8
+ env :
9
+ CONSOLE_OUTPUT : XTerm
10
+
11
+ jobs :
12
+ test :
13
+ name : ${{matrix.ruby}} on ${{matrix.os}}
14
+ runs-on : ${{matrix.os}}-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ os :
19
+ - ubuntu
20
+
21
+ ruby :
22
+ - " 3.1"
23
+ - " 3.2"
24
+ - " 3.3"
25
+
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+ - uses : ruby/setup-ruby@v1
29
+ with :
30
+ ruby-version : ${{matrix.ruby}}
31
+ bundler-cache : true
32
+
33
+ - name : Setup test environment
34
+ uses : ./.github/actions/test-environment
35
+
36
+ - name : Run tests
37
+ timeout-minutes : 10
38
+ run : bundle exec bake test:external
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on : [push, pull_request]
4
+
5
+ permissions :
6
+ contents : read
7
+
8
+ env :
9
+ CONSOLE_OUTPUT : XTerm
10
+
11
+ jobs :
12
+ test :
13
+ name : ${{matrix.ruby}} on ${{matrix.os}}
14
+ runs-on : ${{matrix.os}}-latest
15
+ continue-on-error : ${{matrix.experimental}}
16
+
17
+ strategy :
18
+ matrix :
19
+ os :
20
+ - ubuntu
21
+
22
+ ruby :
23
+ - " 3.1"
24
+ - " 3.2"
25
+ - " 3.3"
26
+
27
+ experimental : [false]
28
+
29
+ include :
30
+ - os : ubuntu
31
+ ruby : truffleruby
32
+ experimental : true
33
+ - os : ubuntu
34
+ ruby : jruby
35
+ experimental : true
36
+ - os : ubuntu
37
+ ruby : head
38
+ experimental : true
39
+
40
+ steps :
41
+ - uses : actions/checkout@v4
42
+ - uses : ruby/setup-ruby@v1
43
+ with :
44
+ ruby-version : ${{matrix.ruby}}
45
+ bundler-cache : true
46
+
47
+ - name : Setup test environment
48
+ uses : ./.github/actions/test-environment
49
+
50
+ - name : Run tests
51
+ timeout-minutes : 10
52
+ run : bundle exec bake test
Original file line number Diff line number Diff line change 1
1
/.bundle /
2
- /doc /
3
2
/pkg /
4
- /tmp /
5
-
6
- # rspec failure tracking
7
- .rspec_status
8
- gems.locked
3
+ /gems.locked
4
+ /.covered.db
5
+ /external
Original file line number Diff line number Diff line change
1
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments