-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2dc03e
commit 3951d07
Showing
7 changed files
with
93 additions
and
8 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
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
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,32 @@ | ||
# configlet workflow | ||
|
||
The `configlet` workflow is defined in the `.github/workflows/configlet.yml` file. | ||
It uses the [configlet tool](/docs/building/configlet) to check if a track's (configuration) files are properly structured - both syntactically and semantically. | ||
It does this by running [`configlet lint`](/docs/building/configlet/lint). | ||
|
||
## Enable checking file formatting | ||
|
||
Tracks can use [`configlet fmt`](/docs/building/configlet/format) to format the track's various configuration files. | ||
The same command can also be used to check if all configuration files are formatted correctly. | ||
|
||
The `configlet` workflow supports verifying whether the configuration files are formatted correctly, but this is optional and disabled by default. | ||
To opt-into verifying configuration files' formatting, follow these steps: | ||
|
||
1. Create a `.github/org-wide-files-config.toml` file with the following contents | ||
|
||
```toml | ||
[configlet] | ||
fmt = true | ||
``` | ||
|
||
2. After this file is merged into `main`, a PR will automatically be opened that modifies the `configlet.yml` workflow as follows: | ||
|
||
```diff | ||
jobs: | ||
configlet: | ||
uses: exercism/github-actions/.github/workflows/configlet.yml@main | ||
+ with: | ||
+ fmt: true | ||
``` | ||
|
||
3. Once this PR is merged, the `configlet` workflow will also verify the track's configuration files' formatting. |
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