Skip to content

Commit 0413fd5

Browse files
damacusStromweld
andauthored
Update workflows (#172)
Signed-off-by: Dan Webb <[email protected]> Co-authored-by: Corey Hemminger <[email protected]>
1 parent 9d57c0b commit 0413fd5

File tree

1 file changed

+11
-47
lines changed

1 file changed

+11
-47
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -8,57 +8,21 @@ name: ci
88
- main
99

1010
jobs:
11-
rspec:
12-
# This needs to run on a Windows host due to expecting windows paths in tests
13-
runs-on: windows-latest
14-
steps:
15-
- name: Check out code
16-
uses: actions/checkout@v4
17-
- name: Install Chef
18-
uses: actionshub/[email protected]
19-
- name: Run RSpec
20-
run: chef exec rspec -f j -o tmp/rspec_results.json -f p
21-
env:
22-
CHEF_LICENSE: accept-no-persist
23-
- name: RSpec Report
24-
uses: SonicGarden/[email protected]
25-
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
27-
json-path: tmp/rspec_results.json
28-
if: always()
29-
30-
cookstyle:
31-
runs-on: ubuntu-latest
32-
steps:
33-
- name: Check out code
34-
uses: actions/checkout@v4
35-
- name: Install Chef
36-
uses: actionshub/[email protected]
37-
- name: Run Cookstyle
38-
run: chef exec cookstyle --display-cop-names --extra-details
39-
env:
40-
CHEF_LICENSE: accept-no-persist
41-
42-
yamllint:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- name: Check out code
46-
uses: actions/checkout@v4
47-
- name: Run yaml Lint
48-
uses: actionshub/yamllint@main
49-
50-
mdl:
51-
runs-on: ubuntu-latest
52-
steps:
53-
- name: Check out code
54-
uses: actions/checkout@v4
55-
- name: Run Markdown Lint
56-
uses: actionshub/[email protected]
11+
lint-unit:
12+
uses: sous-chefs/.github/.github/workflows/[email protected]
13+
with:
14+
platform: windows-latest
15+
permissions:
16+
actions: write
17+
checks: write
18+
pull-requests: write
19+
statuses: write
20+
issues: write
5721

5822
# This needs to run on vagrant due to the fact these nodes reboot during their
5923
# runs
6024
integration:
61-
needs: [mdl, yamllint, cookstyle, rspec]
25+
needs: lint-unit
6226
runs-on: macos-latest
6327
strategy:
6428
fail-fast: false

0 commit comments

Comments
 (0)