Skip to content

Commit

Permalink
Merge pull request #148 from chef/testing
Browse files Browse the repository at this point in the history
Move to GitHub actions for testing
  • Loading branch information
tas50 committed Sep 30, 2021
2 parents aa2074a + a7660d1 commit ba75439
Show file tree
Hide file tree
Showing 12 changed files with 86 additions and 105 deletions.
5 changes: 0 additions & 5 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,3 @@ subscriptions:
actions:
- built_in:rollover_changelog
- built_in:publish_rubygems

pipelines:
- verify:
description: Pull Request validation tests
public: true
16 changes: 0 additions & 16 deletions .expeditor/run_linux_tests.sh

This file was deleted.

53 changes: 0 additions & 53 deletions .expeditor/verify.pipeline.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md

This file was deleted.

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/NEW_COP_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: 🚀 New Chefstyle Cop Request
about: I have a suggestion for a new Chefstyle cop(and may want to implement it 🙂)!
labels: "Status: Untriaged, New Cop Proposal"
---

### Describe the new cop:

<!--- Why is a new Chefstyle Cop necessary? -->

### What it would trigger on:

<!--- Give examples of the code that you're trying to trigger on -->
```ruby

```

### What it would autocorrect to if applicable

<!--- If autocorrecting is possible what would you correct to? -->
```ruby

```

### Can We Help You Implement This?:

<!--- The best way to ensure your enhancement is built is to help implement the enhancement yourself. If you're interested in helping out we'd love to give you a hand to make this possible. Let us know if there's something you need. -->
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ updates:
time: "06:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 10
labels:
- "Type: Chore"
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: lint

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

jobs:
cookstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- run: bundle exec chefstyle
27 changes: 27 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: unit

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

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [windows-2019, ubuntu-latest]
ruby: ['2.5', '2.6', '2.7', '3.0']
runs-on: ${{ matrix.os }}
env:
BUNDLE_WITHOUT: profiling,debug,docs
name: Unit test on ${{ matrix.os }} with Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake spec
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
/pkg/
/spec/reports/
/tmp/
/test.rb # used for quick testing of cops
/vendor/
/vendor/
*.gem

# used for quick testing of cops
/test.rb
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Please refer to https://github.com/chef/chef/blob/master/CONTRIBUTING.md
Please refer to https://github.com/chef/chef/blob/main/CONTRIBUTING.md
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

[![Gem Version](https://badge.fury.io/rb/chefstyle.svg)](https://badge.fury.io/rb/chefstyle)

**Umbrella Project**: [Chef Foundation](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-foundation.md)
**Umbrella Project**: [Chef Foundation](https://github.com/chef/chef-oss-practices/blob/main/projects/chef-foundation.md)

**Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md#active)
**Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/main/repo-management/repo-states.md#active)

**Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
**Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/main/repo-management/repo-states.md)**: 14 days

**Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days
**Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/main/repo-management/repo-states.md)**: 14 days

This is an internal style guide for chef ruby projects (chef-client,
ohai, mixlib-shellout, mixlib-config, etc).
Expand Down
7 changes: 0 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ task :validate_config do
exit status
end

begin
require "yard" unless defined?(YARD)
YARD::Rake::YardocTask.new(:docs)
rescue LoadError
puts "yard is not available. bundle install first to make sure all dependencies are installed."
end

task :console do
require "irb"
require "irb/completion"
Expand Down

0 comments on commit ba75439

Please sign in to comment.