Skip to content

Commit 820504c

Browse files
authored
fix(ci): Update workflows to use release pipeline (#50)
Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent f3c6efb commit 820504c

10 files changed

Lines changed: 128 additions & 41 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: conventional-commits
3+
4+
"on":
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
jobs:
13+
conventional-commits:
14+
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@5.0.3
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: 'Copilot Setup Steps'
3+
4+
"on":
5+
workflow_dispatch:
6+
push:
7+
paths:
8+
- .github/workflows/copilot-setup-steps.yml
9+
pull_request:
10+
paths:
11+
- .github/workflows/copilot-setup-steps.yml
12+
13+
jobs:
14+
copilot-setup-steps:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
steps:
19+
- name: Check out code
20+
uses: actions/checkout@v5
21+
- name: Install Chef
22+
uses: actionshub/chef-install@main
23+
- name: Install cookbooks
24+
run: berks install
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: prevent-file-change
3+
4+
"on":
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
jobs:
13+
prevent-file-change:
14+
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@5.0.3
15+
secrets:
16+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: release
3+
4+
"on":
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
packages: write
14+
attestations: write
15+
id-token: write
16+
17+
jobs:
18+
release:
19+
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@5.0.3
20+
secrets:
21+
token: ${{ secrets.PORTER_GITHUB_TOKEN }}
22+
supermarket_user: ${{ secrets.CHEF_SUPERMARKET_USER }}
23+
supermarket_key: ${{ secrets.CHEF_SUPERMARKET_KEY }}

.markdownlint-cli2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ config:
33
line-length: false # MD013
44
no-duplicate-heading: false # MD024
55
reference-links-images: false # MD052
6+
no-multiple-blanks:
7+
maximum: 2
8+
ignores:
9+
- .github/copilot-instructions.md

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "3.0.4"
3+
}

CHANGELOG.md

Lines changed: 30 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,58 @@
22

33
This file is used to list changes made in each version of visualstudio.
44

5-
## Unreleased
6-
7-
## 3.0.4 - *2025-09-04*
8-
9-
## 3.0.3 - *2024-05-03*
10-
11-
## 3.0.2 - *2024-05-03*
12-
13-
## 3.0.1 - *2023-12-21*
14-
155
## 3.0.0 - *2023-11-06*
166

17-
- Update testing
7+
* Update testing
188

199
## 2.0.2 - *2021-08-31*
2010

21-
- Standardise files with files in sous-chefs/repo-management
11+
* Standardise files with files in sous-chefs/repo-management
2212

2313
## 2.0.1 - *2021-06-01*
2414

25-
- Various Cookstyle fixes
15+
* Various Cookstyle fixes
2616

2717
## 2.0.0
2818

29-
- Support Chef 13, drop support for Chef 12.
30-
- Fix VS 2015 Community package name.
31-
- Use ServerRunner instead of SoloRunner for ChefSpec tests.
32-
- Use Windows 2012R2 as target for both ChefSpec and Test Kitchen.
33-
- Use Chef 13 for Test Kitchen since minitest-handler is incompatible with Chef 14.
34-
- Standardize testing environment across repos. (AppVeyor, Kitchen, Rake, etc.)
35-
- Upgrade development dependencies.
19+
* Support Chef 13, drop support for Chef 12.
20+
* Fix VS 2015 Community package name.
21+
* Use ServerRunner instead of SoloRunner for ChefSpec tests.
22+
* Use Windows 2012R2 as target for both ChefSpec and Test Kitchen.
23+
* Use Chef 13 for Test Kitchen since minitest-handler is incompatible with Chef 14.
24+
* Standardize testing environment across repos. (AppVeyor, Kitchen, Rake, etc.)
25+
* Upgrade development dependencies.
3626

3727
## 1.2.0
3828

39-
- Default to VS 2015 Community Edition
40-
- Add ability to specifiy installed features via install_items attributes.
41-
- Add default_source URLs for VS 2013 and 2015, make source attribute optional.
42-
- Add ability to specifiy download source on a per edition/version basis.
43-
- [GH 58](https://github.com/daptiv/visualstudio/issues/58) Fix enable nuget package restore recipe idempotence.
44-
- [GH 56](https://github.com/daptiv/visualstudio/issues/56) Fix architecture check.
29+
* Default to VS 2015 Community Edition
30+
* Add ability to specifiy installed features via install_items attributes.
31+
* Add default_source URLs for VS 2013 and 2015, make source attribute optional.
32+
* Add ability to specifiy download source on a per edition/version basis.
33+
* [GH 58](https://github.com/daptiv/visualstudio/issues/58) Fix enable nuget package restore recipe idempotence.
34+
* [GH 56](https://github.com/daptiv/visualstudio/issues/56) Fix architecture check.
4535

4636
## 1.1.0
4737

48-
- VS 2010 installation defaults to /q without needing an unattend.ini file.
49-
- VS 2012 Update 5.
50-
- VS 2015 Enterprise edition added.
51-
- Product key is now configurable via a node attribute.
52-
- Replaced Tailor with RuboCop and upgraded development dependencies.
53-
- Fixed "Win32::Registry::Error".
54-
- Added TravisCI build.
38+
* VS 2010 installation defaults to /q without needing an unattend.ini file.
39+
* VS 2012 Update 5.
40+
* VS 2015 Enterprise edition added.
41+
* Product key is now configurable via a node attribute.
42+
* Replaced Tailor with RuboCop and upgraded development dependencies.
43+
* Fixed "Win32::Registry::Error".
44+
* Added TravisCI build.
5545

5646
## 1.0.1
5747

58-
- Exit code 3010 (reboot required) should not fail Chef run
59-
- Fix install_update minitest failure on VS 2015
60-
- Fix VisualStudio 2015 installation error (WebSocket4NetV1) on Windows 2012R2
61-
- Increase VSTO installation timeout from 10m to 30m
48+
* Exit code 3010 (reboot required) should not fail Chef run
49+
* Fix install_update minitest failure on VS 2015
50+
* Fix VisualStudio 2015 installation error (WebSocket4NetV1) on Windows 2012R2
51+
* Increase VSTO installation timeout from 10m to 30m
6252

6353
## 1.0.0
6454

65-
- Initial release to Chef SuperMarket
55+
* Initial release to Chef SuperMarket
56+
57+
* * *
6658

67-
- - -
6859
Refer to the [Markdown Syntax Guide](https://daringfireball.net/projects/markdown/syntax) for help with standard Markdown, and [Writing on GitHub](https://help.github.com/categories/writing-on-github/) for help with the GitHub dialect of Markdown.

libraries/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def iso_source(version, edition)
4646
# Fails the Chef run if the visualstudio download source is not set
4747
def assert_src_is_not_nil(src, version, edition)
4848
return unless src.to_s.empty?
49-
raise 'The ISO download source is empty! '\
49+
raise 'The ISO download source is empty! ' \
5050
"Set the node['visualstudio']['#{version}']['#{edition}']['source'] " \
5151
'or node[\'visualstudio\'][\'source\'] attribute and run again!'
5252
end

release-please-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"packages": {
3+
".": {
4+
"package-name": "visualstudio",
5+
"changelog-path": "CHANGELOG.md",
6+
"release-type": "ruby",
7+
"include-component-in-tag": false,
8+
"version-file": "metadata.rb"
9+
}
10+
},
11+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
12+
}

spec/install_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
end
6464
expect { chef_run.converge(described_recipe) }.to raise_error(
6565
RuntimeError,
66-
'The ISO download source is empty! '\
66+
'The ISO download source is empty! ' \
6767
'Set the node[\'visualstudio\'][\'2012\'][\'ultimate\'][\'source\'] ' \
6868
'or node[\'visualstudio\'][\'source\'] attribute and run again!'
6969
)

0 commit comments

Comments
 (0)