Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit e261e85

Browse files
authored
feat(ci): migrate to reusable workflows v4.1.0 (#93)
Update ci.yml to use lint-unit workflow v4.1.0 Add conventional-commits workflow for PR validation Add prevent-file-change workflow for metadata protection Add release workflow using release-cookbook v4.1.0 Add release-please configuration files Use secrets: inherit for proper secret propagation Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent 4087397 commit e261e85

File tree

10 files changed

+125
-45
lines changed

10 files changed

+125
-45
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name: ci
88

99
jobs:
1010
lint-unit:
11-
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@4.0.0
11+
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@5.0.3
1212
permissions:
1313
actions: write
1414
checks: write
@@ -18,17 +18,15 @@ jobs:
1818

1919
integration:
2020
needs: "lint-unit"
21-
2221
runs-on: ubuntu-latest
2322
strategy:
2423
matrix:
2524
os:
2625
- "ubuntu-1804"
2726
- "ubuntu-2004"
2827
- "ubuntu-2104"
29-
suite:
30-
- "default"
31-
fail-fast: false
28+
suite: ["default"]
29+
fail-fast: true
3230

3331
steps:
3432
- name: Check out code
@@ -43,3 +41,9 @@ jobs:
4341
with:
4442
suite: ${{ matrix.suite }}
4543
os: ${{ matrix.os }}
44+
45+
final:
46+
runs-on: ubuntu-latest
47+
needs: [integration]
48+
steps:
49+
- run: echo ${{needs.integration.outputs}}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: 'Validate PR'
3+
4+
"on":
5+
pull_request_target:
6+
types: [opened, edited, reopened]
7+
8+
jobs:
9+
conventional-commits:
10+
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@5.0.3
11+
permissions:
12+
pull-requests: read
13+
secrets: inherit
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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: 'Prevent file change'
3+
4+
"on":
5+
pull_request_target:
6+
branches: [main]
7+
8+
jobs:
9+
prevent-file-change:
10+
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@5.0.3
11+
permissions:
12+
pull-requests: write
13+
secrets:
14+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

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

CHANGELOG.md

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

33
All notable changes to this project will be documented in this file.
44

5-
## Unreleased
6-
7-
## 1.0.11 - *2025-09-04*
8-
9-
## 1.0.10 - *2024-05-06*
10-
11-
## 1.0.9 - *2024-05-06*
12-
13-
## 1.0.8 - *2023-11-01*
14-
15-
## 1.0.7 - *2023-03-02*
16-
17-
## 1.0.6 - *2023-03-01*
18-
195
## 1.0.5 - *2023-03-01*
206

21-
- Update workflows to 2.0.1
22-
- Remove mdl and replace with markdownlint-cli2
23-
24-
## 1.0.4 - *2023-02-14*
7+
* Update workflows to 2.0.1
8+
* Remove mdl and replace with markdownlint-cli2
259

2610
## 1.0.3 - *2023-02-14*
2711

28-
- Remove delivery folder
12+
* Remove delivery folder
2913

3014
## 1.0.2 - *2021-08-31*
3115

32-
- Standardise files with files in sous-chefs/repo-management
16+
* Standardise files with files in sous-chefs/repo-management
3317

3418
## 1.0.1 - *2021-06-01*
3519

36-
- Standardise files with files in sous-chefs/repo-management
20+
* Standardise files with files in sous-chefs/repo-management
3721

3822
## 1.0.0 - *2021-05-20*
3923

40-
- Require chef-infra version 15.3 or greater
24+
* Require chef-infra version 15.3 or greater
4125

4226
## 0.5.0 - *2021-05-17*
4327

44-
- Add ubuntu 20.04 support
45-
- Add ubuntu 21.04 support
28+
* Add ubuntu 20.04 support
29+
* Add ubuntu 21.04 support
4630

4731
## 0.4.1 - *2021-05-11*
4832

49-
- Update standardised files from sous-chefs/repo-management
33+
* Update standardised files from sous-chefs/repo-management
5034

5135
## 0.4.0
5236

53-
- Migrated to Github Actions for testing
54-
- Simplified the PPA setup in the `apt_repository` resource
55-
- resolved cookstyle error: recipes/windows.rb:19:18 convention: `Layout/TrailingWhitespace`
56-
- resolved cookstyle error: recipes/windows.rb:19:19 refactor: `ChefModernize/FoodcriticComments`
37+
* Migrated to Github Actions for testing
38+
* Simplified the PPA setup in the `apt_repository` resource
39+
* resolved cookstyle error: recipes/windows.rb:19:18 convention: `Layout/TrailingWhitespace`
40+
* resolved cookstyle error: recipes/windows.rb:19:19 refactor: `ChefModernize/FoodcriticComments`
5741

5842
## [0.3.1] - 2019-08-12
5943

60-
- Add a TESTING.md file
61-
- Use a new windows test image and test windows 2016
44+
* Add a TESTING.md file
45+
* Use a new windows test image and test windows 2016
6246

6347
## [0.3.0] - 2019-08-08
6448

65-
- Use a custom resource instead of an LWRP
66-
- Add tests.
67-
- Make the cookbook actions idempotent.
68-
- Remove the chefspec tests
49+
* Use a custom resource instead of an LWRP
50+
* Add tests.
51+
* Make the cookbook actions idempotent.
52+
* Remove the chefspec tests
6953

7054
## [0.2.0]
7155

72-
- Add support for Mac OS X
73-
- On Debian/Ubuntu install package instead of just setting up Atom apt ppa repo
74-
- On Windows, install package directly instead of using Chocolatey
75-
- Add specs and integration tests
56+
* Add support for Mac OS X
57+
* On Debian/Ubuntu install package instead of just setting up Atom apt ppa repo
58+
* On Windows, install package directly instead of using Chocolatey
59+
* Add specs and integration tests

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": "atom",
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+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Exercise the atom_apm resource.
1+
# Exercise the atom_apm resource

0 commit comments

Comments
 (0)