Skip to content

Commit

Permalink
Merge pull request #29 from StatusCakeDev/update-ci
Browse files Browse the repository at this point in the history
ci: update to comply with internal standards
  • Loading branch information
tomasbasham authored Jul 13, 2023
2 parents 40eefc7 + f7047eb commit 315a0b9
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
],
"rules": {
"body-max-line-length": [2, "always", 72],
"header-max-length": [02, "always", 50],
"header-max-length": [2, "always", 50],
},
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ indent_style = tab

[*.{diff,md}]
trim_trailing_whitespace = false

[{GNU,}Makefile]
indent_style = tab
6 changes: 3 additions & 3 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
* @StatusCakeDev/developers

# Order is important; the last matching pattern takes the most precedence. When
# someone opens a pull request that only modifies Go files, only these owner(s)
# and not the global owner(s) will be requested for a review.
* @StatusCakeDev/developers
# someone opens a pull request that only modifies the following paths, only
# these owner(s) and not the global owner(s) will be requested for a review.
.github/ @StatusCakeDev/operations
32 changes: 32 additions & 0 deletions .github/workflows/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ on:
pull_request:
push:
branches:
# This is run on merge queue branches as there are jobs listed in this
# action that are often required in branch protection rules. Due to guards
# below certain jobs may not run in merge queue branches but will still
# return a status indicating a pass.
- gh-readonly-queue/**
- master
jobs:
check-merge-commits:
if: github.event_name == 'pull_request'
Expand All @@ -24,3 +29,30 @@ jobs:
done
exit 1
fi
commit-message-style:
if: github.event_name == 'pull_request' && github.triggering_actor != 'dependabot[bot]'
name: Check commit message style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 19.x
- name: Install base config
run: npm install @commitlint/config-conventional
- name: Validate all commits
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to HEAD --verbose
yamllint:
name: Lint YAML documents
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install yamllint
run: pip install --user yamllint
- name: Lint
run: yamllint .
23 changes: 0 additions & 23 deletions .github/workflows/style.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# vi: ft=yaml
---
extends: default
rules:
indentation:
indent-sequences: false
spaces: 2
line-length: false
quoted-strings:
quote-type: double
required: only-when-needed
truthy: disable

0 comments on commit 315a0b9

Please sign in to comment.