-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: adding GitHub Actions workflow formatting check
- Loading branch information
1 parent
227841d
commit 24800d0
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,24 @@ check-conventional-commits-linting: | |
RUN ./ci/check-conventional-commits-linting.sh --from-reference "${from_reference}" | ||
|
||
|
||
yaml-formatting-base: | ||
FROM +golang-base | ||
RUN go install github.com/google/yamlfmt/cmd/[email protected] | ||
COPY ".yamlfmt" "./" | ||
DO +COPY_CI_DATA | ||
|
||
|
||
check-yaml-formatting: | ||
FROM +yaml-formatting-base | ||
RUN ./ci/check-yaml-formatting.sh | ||
|
||
|
||
fix-yaml-formatting: | ||
FROM +yaml-formatting-base | ||
RUN ./ci/fix-yaml-formatting.sh | ||
SAVE ARTIFACT ".github/" AS LOCAL "./" | ||
|
||
|
||
check-github-actions-workflows-linting: | ||
FROM golang:1.20.13 | ||
RUN go install github.com/rhysd/actionlint/cmd/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
set -o xtrace | ||
|
||
yamlfmt -lint -dstar .github/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -o errexit | ||
set -o xtrace | ||
|
||
yamlfmt -dstar ./github/**/* |