-
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.
Check the files before allowing commit.
- Loading branch information
Showing
29 changed files
with
313 additions
and
249 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Check formatting | ||
|
||
on: | ||
push: | ||
branches: ["master", "main"] | ||
pull_request: | ||
branches: ["master", "main"] | ||
|
||
jobs: | ||
check-generated: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v2.x | ||
|
||
- name: Format files | ||
run: deno fmt | ||
|
||
- name: Run rebuild script | ||
run: ./tools/rebuild.ts | ||
|
||
- name: Check for changes | ||
run: | | ||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "Found changes after running formatters and generators:" | ||
git diff | ||
exit 1 | ||
fi |
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
Oops, something went wrong.