bake-modernize 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/modernize/actions.rb +21 -0
- data/lib/bake/modernize/version.rb +1 -1
- data/template/actions/.github/workflows/{coverage.yml → coverage.yaml} +1 -1
- data/template/actions/.github/workflows/{documentation.yml → documentation.yaml} +1 -1
- data/template/actions/.github/workflows/test-external.yaml +36 -0
- data/template/actions/.github/workflows/{development.yml → test.yaml} +4 -4
- data.tar.gz.sig +0 -0
- metadata +6 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 850deabfd56b19447f52f260f156ad33342f4a190eb92ce6d405719749732e9f
|
4
|
+
data.tar.gz: bc2de84361926006008b85b938ac962e82c3c77a81a3ae586159394a1e4da7fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d49a2140890d760138064ccea4ac346e74900f8fc87d692d4976d0c8a608e1b2e762f05feea940309ed0a6ac2a557942988b2d917ce8dca20f0172bf5e799be
|
7
|
+
data.tar.gz: f90a30c513c7cb533e4e7088d1235b895362f07a21ccf73ae6e4186e62de9d327d7f3f9a4689fbba60fa199281ed90b5751461c66247ae6c4936b48360b11c2e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/modernize/actions.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
require 'bake/modernize'
|
3
3
|
require 'rugged'
|
4
4
|
require 'markly'
|
5
|
+
require 'build/files/system'
|
5
6
|
|
6
7
|
def actions
|
7
8
|
update(root: Dir.pwd)
|
@@ -14,6 +15,8 @@ def update(root:)
|
|
14
15
|
FileUtils.rm_rf(travis_path)
|
15
16
|
end
|
16
17
|
|
18
|
+
update_filenames(root)
|
19
|
+
|
17
20
|
template_root = Bake::Modernize.template_path_for('actions')
|
18
21
|
Bake::Modernize.copy_template(template_root, root)
|
19
22
|
|
@@ -23,6 +26,24 @@ end
|
|
23
26
|
|
24
27
|
private
|
25
28
|
|
29
|
+
def update_filenames(root)
|
30
|
+
actions_root = Build::Files::Path.new(root) + ".github/workflows"
|
31
|
+
yml_files = actions_root.glob("*.yml")
|
32
|
+
|
33
|
+
# Move all .yml files to .yaml files :)
|
34
|
+
yml_files.each do |path|
|
35
|
+
new_path = path.with(extension: ".yaml", basename: true)
|
36
|
+
FileUtils.mv(path, new_path)
|
37
|
+
end
|
38
|
+
|
39
|
+
# Move development.yaml to test.yaml
|
40
|
+
development_path = actions_root + "development.yaml"
|
41
|
+
test_path = actions_root + "test.yaml"
|
42
|
+
if development_path.exist?
|
43
|
+
FileUtils.mv(development_path, test_path)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
26
47
|
def repository_url(root)
|
27
48
|
repository = Rugged::Repository.discover(root)
|
28
49
|
git_url = repository.remotes['origin'].url
|
@@ -0,0 +1,36 @@
|
|
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
|
+
- "2.7"
|
24
|
+
- "3.0"
|
25
|
+
- "3.1"
|
26
|
+
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v3
|
29
|
+
- uses: ruby/setup-ruby@v1
|
30
|
+
with:
|
31
|
+
ruby-version: ${{matrix.ruby}}
|
32
|
+
bundler-cache: true
|
33
|
+
|
34
|
+
- name: Run tests
|
35
|
+
timeout-minutes: 10
|
36
|
+
run: bundle exec bake test:external
|
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: Test
|
2
2
|
|
3
3
|
on: [push, pull_request]
|
4
4
|
|
@@ -6,7 +6,7 @@ permissions:
|
|
6
6
|
contents: read
|
7
7
|
|
8
8
|
env:
|
9
|
-
CONSOLE_OUTPUT:
|
9
|
+
CONSOLE_OUTPUT: XTerm
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
test:
|
@@ -46,5 +46,5 @@ jobs:
|
|
46
46
|
bundler-cache: true
|
47
47
|
|
48
48
|
- name: Run tests
|
49
|
-
timeout-minutes:
|
50
|
-
run: bundle exec
|
49
|
+
timeout-minutes: 10
|
50
|
+
run: bundle exec bake test
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake-modernize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
RAOsIl+HOBTb252nx1kIRN5hqQx272AJCbCjKx8egcUQKffFVVCI0nye09v5CK+a
|
38
38
|
HiLJ8VOFx6w=
|
39
39
|
-----END CERTIFICATE-----
|
40
|
-
date: 2022-06
|
40
|
+
date: 2022-08-06 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: async-http
|
@@ -138,9 +138,10 @@ files:
|
|
138
138
|
- bake/modernize/signing.rb
|
139
139
|
- lib/bake/modernize.rb
|
140
140
|
- lib/bake/modernize/version.rb
|
141
|
-
- template/actions/.github/workflows/coverage.
|
142
|
-
- template/actions/.github/workflows/
|
143
|
-
- template/actions/.github/workflows/
|
141
|
+
- template/actions/.github/workflows/coverage.yaml
|
142
|
+
- template/actions/.github/workflows/documentation.yaml
|
143
|
+
- template/actions/.github/workflows/test-external.yaml
|
144
|
+
- template/actions/.github/workflows/test.yaml
|
144
145
|
- template/editorconfig/.editorconfig
|
145
146
|
- template/readme/README.md
|
146
147
|
homepage: https://github.com/ioquatix/bake-modernize
|
metadata.gz.sig
CHANGED
Binary file
|