Skip to content

Commit dbf68dc

Browse files
committed
Adds Release workflow
- Release gem to GitHub - Bumps version using please-release - Use the standard Rakefile Remove changelog generator and docs that we are no longer using Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent 4a87ee5 commit dbf68dc

17 files changed

Lines changed: 139 additions & 106 deletions

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@test-kitchen/maintainers

.github/dependabot.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
---
12
version: 2
23
updates:
3-
- package-ecosystem: bundler
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
8-
ignore:
9-
- dependency-name: github_changelog_generator
10-
versions:
11-
- 1.16.0
4+
- package-ecosystem: bundler
5+
directory: "/"
6+
schedule:
7+
interval: daily
8+
open-pull-requests-limit: 10
9+
ignore:
10+
- dependency-name: github_changelog_generator
11+
versions:
12+
- 1.16.0

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
---
12
name: CI
2-
3-
on:
3+
"on":
44
pull_request:
55
push:
66
branches:
@@ -11,12 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
ruby: [ '2.6', '2.7', '3.0']
14+
ruby: ["2.6", "2.7", "3.0"]
1515
name: Lint & Test with Ruby ${{ matrix.ruby }}
1616
steps:
1717
- uses: actions/checkout@v2
1818
- uses: ruby/setup-ruby@v1
1919
with:
2020
ruby-version: ${{ matrix.ruby }}
2121
bundler-cache: true
22-
- run: bundle exec rake
22+
- run: bundle exec rake

.github/workflows/linters.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: 'Test'
3+
'on':
4+
pull_request:
5+
6+
jobs:
7+
lint-unit:
8+
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"on":
3+
push:
4+
branches:
5+
- main
6+
7+
name: release-please
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: google-github-actions/release-please-action@v3
13+
with:
14+
release-type: ruby
15+
package-name: kitchen-vra
16+
version-file: lib/kitchen/driver/vra_version.rb

.github/workflows/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Publish
3+
4+
'on':
5+
release:
6+
types: [published]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Build and publish gem
14+
uses: jstastny/publish-gem-to-github@master
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
owner: ${{ secrets.OWNER }}

.kitchen.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ provisioner:
1212
script: provision.ps1
1313

1414
platforms:
15-
- name: windows-2012R2
15+
- name: windows-2012R2
1616

1717
verifier:
1818
name: pester

.kitchen.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ provisioner:
77
script: provision.ps1
88

99
platforms:
10-
- name: windows-2016
11-
driver_config:
12-
box: stefanscherer/windows_2016
10+
- name: windows-2016
11+
driver_config:
12+
box: stefanscherer/windows_2016
1313

1414
verifier:
1515
name: pester

.markdownlint-cli2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
config:
2+
ul-indent: false # MD007
3+
line-length: false # MD013
4+
no-duplicate-heading: false # MD024

.yamllint

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
extends: default
3+
rules:
4+
line-length:
5+
max: 256
6+
level: warning
7+
document-start: disable
8+
braces:
9+
forbid: false
10+
min-spaces-inside: 0
11+
max-spaces-inside: 1
12+
min-spaces-inside-empty: -1
13+
max-spaces-inside-empty: -1
14+
comments:
15+
min-spaces-from-content: 1

0 commit comments

Comments
 (0)