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

Removed old pipeline and added new one #1

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
80 changes: 63 additions & 17 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,76 @@
---
name: 'Lint, Unit & Integration Tests'
name: lint

'on':
"on":
pull_request:
push:
branches:
- main

jobs:
lint-unit:
uses: test-kitchen/.github/.github/workflows/lint-unit.yml@main
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true

integration:
jobs:
chefstyle:
env:
BUNDLE_WITH: ${{ inputs.bundle_with }}
runs-on: ubuntu-latest
needs: lint-unit
name: Kitchen Verify
strategy:
fail-fast: false
matrix:
ruby: ["3.3"]
name: Chefstyle on Ruby
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- name: Checkout code
uses: actions/checkout@v4
- name: Check for Gemfile
id: check
run: |
if [ -f Gemfile ]; then
echo "gemfile=true" >> $GITHUB_OUTPUT
else
echo "gemfile=false" >> $GITHUB_OUTPUT
fi
- name: Setup Ruby
if: steps.check.outputs.gemfile == 'true'
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Create & Validate containers
run: |
bundle exec bundle exec kitchen create hello
bundle exec bundle exec kitchen test helloagain
bundle exec bundle exec kitchen destroy hello
env:
CHEF_LICENSE: "accept-no-persist"
- uses: r7kamura/rubocop-problem-matchers-action@v1
if: steps.check.outputs.gemfile == 'true'
- name: Chef Style
if: steps.check.outputs.gemfile == 'true'
run: bundle exec chefstyle

yamllint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run yaml Lint
uses: actionshub/yamllint@main

markdown-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Markdown lint
uses: DavidAnson/markdownlint-cli2-action@v16
with:
globs: "**/*.md"

markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gaurav-nelson/[email protected]
with:
use-quiet-mode: "yes"
use-verbose-mode: "yes"
check-modified-files-only: "yes"
base-branch: "main"
32 changes: 0 additions & 32 deletions .github/workflows/publish.yaml

This file was deleted.