Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflows #172

Merged
merged 2 commits into from
May 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 11 additions & 47 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,21 @@ name: ci
- main

jobs:
rspec:
# This needs to run on a Windows host due to expecting windows paths in tests
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Chef
uses: actionshub/[email protected]
- name: Run RSpec
run: chef exec rspec -f j -o tmp/rspec_results.json -f p
env:
CHEF_LICENSE: accept-no-persist
- name: RSpec Report
uses: SonicGarden/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
json-path: tmp/rspec_results.json
if: always()

cookstyle:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Chef
uses: actionshub/[email protected]
- name: Run Cookstyle
run: chef exec cookstyle --display-cop-names --extra-details
env:
CHEF_LICENSE: accept-no-persist

yamllint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run yaml Lint
uses: actionshub/yamllint@main

mdl:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Run Markdown Lint
uses: actionshub/[email protected]
lint-unit:
uses: sous-chefs/.github/.github/workflows/[email protected]
with:
platform: windows-latest
permissions:
actions: write
checks: write
pull-requests: write
statuses: write
issues: write

# This needs to run on vagrant due to the fact these nodes reboot during their
# runs
integration:
needs: [mdl, yamllint, cookstyle, rspec]
needs: lint-unit
runs-on: macos-latest
strategy:
fail-fast: false
Expand Down