Skip to content
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
46 changes: 46 additions & 0 deletions .github/workflows/check-formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Check formatting

on:
push:
paths:
- ".github/workflows/check-formatting.yml"
- "Taskfile.yml"
- ".prettierrc"
- "**.go"
- "**.json"
- "**.md"
- "**.yaml"
- "**.yml"
pull_request:
paths:
- ".github/workflows/check-formatting.yml"
- "Taskfile.yml"
- ".prettierrc"
- "**.go"
- "**.json"
- "**.md"
- "**.yaml"
- "**.yml"

jobs:
check-formatting:
runs-on: ubuntu-latest

steps:
- name: Checkout local repository
uses: actions/checkout@v2

- name: Install Taskfile
uses: arduino/actions/setup-taskfile@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: 3.x

- name: Check Go code formatting
run: task go:check-formatting

- name: Check documentation formatting
run: task docs:check-formatting

- name: Check configuration file formatting
run: task config:check-formatting
2 changes: 1 addition & 1 deletion .github/workflows/lint-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby # Install latest version
ruby-version: ruby # Install latest version

- name: Install licensee
run: gem install licensee
Expand Down