File tree 31 files changed +480
-396
lines changed
31 files changed +480
-396
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
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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : RuboCop
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
+
22
+ ruby :
23
+ - " 3.3"
24
+
25
+ services :
26
+ postgres :
27
+ image : postgres
28
+ ports :
29
+ - 5432:5432
30
+ env :
31
+ POSTGRES_USER : test
32
+ POSTGRES_PASSWORD : test
33
+ POSTGRES_DB : test
34
+ POSTGRES_HOST_AUTH_METHOD : trust
35
+ options : >-
36
+ --health-cmd pg_isready
37
+ --health-interval 10s
38
+ --health-timeout 5s
39
+ --health-retries 20
40
+
41
+ steps :
42
+ - uses : actions/checkout@v4
43
+ - uses : ruby/setup-ruby@v1
44
+ with :
45
+ ruby-version : ${{matrix.ruby}}
46
+ bundler-cache : true
47
+
48
+ - name : Installing dependencies (ubuntu)
49
+ if : matrix.os == 'ubuntu'
50
+ run : |
51
+ sudo apt-get install postgresql postgresql-contrib
52
+
53
+ - name : Run tests
54
+ timeout-minutes : 5
55
+ run : bundle exec bake test
56
+
57
+ - uses : actions/upload-artifact@v3
58
+ with :
59
+ name : coverage-${{matrix.os}}-${{matrix.ruby}}
60
+ path : .covered.db
61
+
62
+ validate :
63
+ needs : test
64
+ runs-on : ubuntu-latest
65
+
66
+ steps :
67
+ - uses : actions/checkout@v4
68
+ - uses : ruby/setup-ruby@v1
69
+ with :
70
+ ruby-version : " 3.3"
71
+ bundler-cache : true
72
+
73
+ - uses : actions/download-artifact@v3
74
+
75
+ - name : Validate coverage
76
+ timeout-minutes : 5
77
+ run : bundle exec bake covered:validate --paths */.covered.db \;
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
+ services :
27
+ postgres :
28
+ image : postgres
29
+ ports :
30
+ - 5432:5432
31
+ env :
32
+ POSTGRES_USER : test
33
+ POSTGRES_PASSWORD : test
34
+ POSTGRES_DB : test
35
+ POSTGRES_HOST_AUTH_METHOD : trust
36
+ options : >-
37
+ --health-cmd pg_isready
38
+ --health-interval 10s
39
+ --health-timeout 5s
40
+ --health-retries 20
41
+
42
+ steps :
43
+ - uses : actions/checkout@v4
44
+ - uses : ruby/setup-ruby@v1
45
+ with :
46
+ ruby-version : ${{matrix.ruby}}
47
+ bundler-cache : true
48
+
49
+ - name : Installing dependencies (ubuntu)
50
+ if : matrix.os == 'ubuntu'
51
+ run : |
52
+ sudo apt-get install postgresql postgresql-contrib
53
+
54
+ - name : Run tests
55
+ timeout-minutes : 10
56
+ run : bundle exec bake test:external
Original file line number Diff line number Diff line change 1
- name : Development
1
+ name : Test
2
2
3
3
on : [push, pull_request]
4
4
5
+ permissions :
6
+ contents : read
7
+
8
+ env :
9
+ CONSOLE_OUTPUT : XTerm
10
+
5
11
jobs :
6
12
test :
7
13
name : ${{matrix.ruby}} on ${{matrix.os}}
@@ -14,12 +20,11 @@ jobs:
14
20
- ubuntu
15
21
16
22
ruby :
17
- - " 2.6 "
18
- - " 2.7 "
19
- - " 3.0 "
23
+ - " 3.1 "
24
+ - " 3.2 "
25
+ - " 3.3 "
20
26
21
27
experimental : [false]
22
- env : [""]
23
28
24
29
include :
25
30
- os : ubuntu
28
33
- os : ubuntu
29
34
ruby : jruby
30
35
experimental : true
31
- env : JRUBY_OPTS="--debug -X+O"
32
36
- os : ubuntu
33
37
ruby : head
34
38
experimental : true
50
54
--health-retries 20
51
55
52
56
steps :
53
- - uses : actions/checkout@v2
57
+ - uses : actions/checkout@v4
54
58
- uses : ruby/setup-ruby@v1
55
59
with :
56
60
ruby-version : ${{matrix.ruby}}
62
66
sudo apt-get install postgresql postgresql-contrib
63
67
64
68
- name : Run tests
65
- timeout-minutes : 5
66
- run : ${{matrix.env}} bundle exec rspec
69
+ timeout-minutes : 10
70
+ 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