Skip to content

Commit

Permalink
Fix: Add PR template, release, publsh and unit workflows (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
damacus authored Apr 13, 2022
1 parent 4ff19a2 commit 56b31cc
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 38 deletions.
23 changes: 12 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
# Description
### Description

[Please describe what this change achieves]
<!--- Describe what this change achieves--->

## Issues Resolved
### Issues Resolved

[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant]
<!--- List any existing issues this PR resolves--->

## Type of Change

Our release process assumes you are using Conventional Commit messages.

The most important prefixes you should have in mind are:

_fix_: which represents bug fixes, and correlates to a SemVer patch.
_feat_: which represents a new feature, and correlates to a SemVer minor.
_feat!_:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a major version change.
- `_fix_`: which represents bug fixes, and correlates to a SemVer patch.
- `_feat_`: which represents a new feature, and correlates to a SemVer minor.
- `_feat!_`:, or `fix!:`, `refactor!:`, etc., which represent a breaking change (indicated by the !) and will result in a major version change.

If you have not included a conventional commit message this can be fixed on merge.

## Check List
### Check List

- [ ] New functionality includes tests
- [ ] All tests pass
- [ ] All tests pass.
- [ ] All style checks pass.
- [ ] Functionality includes testing.
- [ ] Functionality has been documented in the README if applicable
- [ ] Commit message includes a [Conventional Commit Message](https://www.conventionalcommits.org/en/v1.0.0)
4 changes: 2 additions & 2 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0', '3.1']
ruby: ['2.7', '3.0', '3.1']
name: Chefstyle on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
Expand All @@ -35,7 +35,7 @@ jobs:
needs: [chefstyle, yamllint]
strategy:
matrix:
ruby: ['2.6', '2.7', '3.0', '3.1']
ruby: ['2.7', '3.0', '3.1']
name: Unit Tests on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/please-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
on:
'on':
push:
branches:
- main
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Publish
types: [published]

jobs:
build:
github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -15,3 +15,12 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: ${{ secrets.OWNER }}
rubygems-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build and publish gem
uses: actionshub/publish-gem-to-rubygems@main
env:
token: ${{ secrets.RUBYGEMS_TOKEN }}
owner: ${{ secrets.OWNER }}
23 changes: 0 additions & 23 deletions .github/workflows/unit.yml

This file was deleted.

1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@test-kitchen/maintainers

0 comments on commit 56b31cc

Please sign in to comment.